Commit 208af9fe authored by sun's avatar sun Committed by gdd
Browse files

Chainable config()->set().

parent eb9954ac
...@@ -123,6 +123,7 @@ public function set($key, $value) { ...@@ -123,6 +123,7 @@ public function set($key, $value) {
else { else {
drupal_array_set_nested_value($this->data, $parts, $value); drupal_array_set_nested_value($this->data, $parts, $value);
} }
return $this;
} }
public function castValue($value) { public function castValue($value) {
......
...@@ -147,11 +147,12 @@ class ConfigFileContentTestCase extends DrupalWebTestCase { ...@@ -147,11 +147,12 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
$this->assertIdentical($db_config, FALSE); $this->assertIdentical($db_config, FALSE);
$this->assertFalse(file_exists($config_dir . '/' . $name . '.' . $this->fileExtension)); $this->assertFalse(file_exists($config_dir . '/' . $name . '.' . $this->fileExtension));
// Chainable ->set()->save()
// Attempt to delete non-existing configuration. // Attempt to delete non-existing configuration.
// Write and read an array value. // Write and read an array value.
// Add an array value to a nested key. // Add an array value to a nested key.
// Type casting into string. // Type casting into string. (recursively)
// NULL value behavior. // NULL value behavior.
// List config names by prefix. // List config names by prefix. (and without prefix)
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment