Commit f9b13976 authored by sun's avatar sun Committed by gdd

Fixed test exception.

parent 4527fc3f
......@@ -106,6 +106,7 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
* Tests setting, writing, and reading of a configuration setting.
*/
function testReadWriteConfig() {
$config_dir = config_get_config_directory();
$name = 'foo.bar';
$key = 'foo';
$value = 'bar';
......@@ -131,7 +132,6 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
$db_config = db_query('SELECT * FROM {config} WHERE name = :name', array(':name' => $name))->fetch();
$this->assertEqual($db_config->name, $name);
// Verify the file exists.
$config_dir = config_get_config_directory();
$this->assertTrue(file_exists($config_dir . '/' . $name . '.' . $this->fileExtension));
// Read the configuration.
......
Markdown is supported
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