Commit fbc0928d authored by sun's avatar sun Committed by gdd
Browse files

Cleaned up and fixed test case class names and info.

parent d29f9463
...@@ -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 SecureFileTestCase extends DrupalWebTestCase { class ConfigFileSecurityTestCase 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 FileContentsTestCase extends DrupalWebTestCase { class ConfigFileContentTestCase extends DrupalWebTestCase {
protected $profile = 'testing'; protected $profile = 'testing';
public static function getInfo() { public static function getInfo() {
return array( return array(
'name' => 'Config file content tests', 'name' => 'File content',
'description' => 'Tests the reading and writing of config settings.', 'description' => 'Tests reading and writing of configuration files.',
'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();
......
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