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
fbc0928d
Commit
fbc0928d
authored
Feb 14, 2012
by
sun
Committed by
gdd
Feb 14, 2012
Browse files
Cleaned up and fixed test case class names and info.
parent
d29f9463
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/config/config.test
View file @
fbc0928d
...
@@ -10,20 +10,17 @@ use Drupal\Core\Config\SignedFileStorage;
...
@@ -10,20 +10,17 @@ use Drupal\Core\Config\SignedFileStorage;
/**
/**
* Tests the secure file writer.
* Tests the secure file writer.
*/
*/
class
SecureFile
TestCase
extends
DrupalWebTestCase
{
class
ConfigFileSecurity
TestCase
extends
DrupalWebTestCase
{
protected
$profile
=
'testing'
;
protected
$profile
=
'testing'
;
protected
$filename
=
'foo.bar'
;
protected
$filename
=
'foo.bar'
;
/**
* @todo
*/
protected
$testContent
=
'Good morning, Denver!'
;
protected
$testContent
=
'Good morning, Denver!'
;
public
static
function
getInfo
()
{
public
static
function
getInfo
()
{
return
array
(
return
array
(
'name'
=>
'
Secure file tests
'
,
'name'
=>
'
File security
'
,
'description'
=>
'Tests
the saving of secure
files.'
,
'description'
=>
'Tests
security of saved configuration
files.'
,
'group'
=>
'Configuration'
,
'group'
=>
'Configuration'
,
);
);
}
}
...
@@ -92,13 +89,13 @@ class SecureFileTestCase extends DrupalWebTestCase {
...
@@ -92,13 +89,13 @@ class SecureFileTestCase extends DrupalWebTestCase {
/**
/**
* Tests reading and writing file contents.
* Tests reading and writing file contents.
*/
*/
class
FileContent
s
TestCase
extends
DrupalWebTestCase
{
class
Config
FileContentTestCase
extends
DrupalWebTestCase
{
protected
$profile
=
'testing'
;
protected
$profile
=
'testing'
;
public
static
function
getInfo
()
{
public
static
function
getInfo
()
{
return
array
(
return
array
(
'name'
=>
'
Config f
ile content
tests
'
,
'name'
=>
'
F
ile content'
,
'description'
=>
'Tests
the
reading and writing of config
setting
s.'
,
'description'
=>
'Tests reading and writing of config
uration file
s.'
,
'group'
=>
'Configuration'
,
'group'
=>
'Configuration'
,
);
);
}
}
...
@@ -106,7 +103,7 @@ class FileContentsTestCase extends DrupalWebTestCase {
...
@@ -106,7 +103,7 @@ class FileContentsTestCase extends DrupalWebTestCase {
/**
/**
* Tests that a simple setting can be written and read.
* Tests that a simple setting can be written and read.
*/
*/
public
function
testReadWriteConfig
()
{
function
testReadWriteConfig
()
{
$config
=
config
(
'foo.bar'
);
$config
=
config
(
'foo.bar'
);
$config
->
set
(
'foo'
,
'bar'
);
$config
->
set
(
'foo'
,
'bar'
);
$config
->
save
();
$config
->
save
();
...
...
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