Populate more of the test stub

This commit is contained in:
Oliver Davies 2020-02-09 21:28:46 +00:00
parent ea2f5a4ae8
commit 0d6bd4e070
3 changed files with 25 additions and 2 deletions

View file

@ -109,6 +109,12 @@ final class GenerateDrupal7ModuleCommandTest extends TestCase
$contents = file_get_contents('test_module/src/Tests/Functional/TestModuleTest.php');
$this->assertStringContainsString('namespace Drupal\\test_module\\Tests\\Functional', $contents);
$this->assertStringContainsString('final class TestModuleTest', $contents);
$this->assertStringContainsString("'name' => 'Test Module'", $contents);
$this->assertStringContainsString("'description' => 'Test Module tests.'", $contents);
$this->assertStringContainsString("'group' => 'Test Module'", $contents);
}
}