Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f9b13976
Commit
f9b13976
authored
Feb 14, 2012
by
sun
Committed by
gdd
Feb 14, 2012
Browse files
Fixed test exception.
parent
4527fc3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/config/config.test
View file @
f9b13976
...
@@ -106,6 +106,7 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
...
@@ -106,6 +106,7 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
* Tests setting, writing, and reading of a configuration setting.
* Tests setting, writing, and reading of a configuration setting.
*/
*/
function
testReadWriteConfig
()
{
function
testReadWriteConfig
()
{
$config_dir
=
config_get_config_directory
();
$name
=
'foo.bar'
;
$name
=
'foo.bar'
;
$key
=
'foo'
;
$key
=
'foo'
;
$value
=
'bar'
;
$value
=
'bar'
;
...
@@ -131,7 +132,6 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
...
@@ -131,7 +132,6 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
$db_config
=
db_query
(
'SELECT * FROM {config} WHERE name = :name'
,
array
(
':name'
=>
$name
))
->
fetch
();
$db_config
=
db_query
(
'SELECT * FROM {config} WHERE name = :name'
,
array
(
':name'
=>
$name
))
->
fetch
();
$this
->
assertEqual
(
$db_config
->
name
,
$name
);
$this
->
assertEqual
(
$db_config
->
name
,
$name
);
// Verify the file exists.
// Verify the file exists.
$config_dir
=
config_get_config_directory
();
$this
->
assertTrue
(
file_exists
(
$config_dir
.
'/'
.
$name
.
'.'
.
$this
->
fileExtension
));
$this
->
assertTrue
(
file_exists
(
$config_dir
.
'/'
.
$name
.
'.'
.
$this
->
fileExtension
));
// Read the configuration.
// Read the configuration.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment