public function TestInfoParsingTest::testTestInfoParserMissingSummary in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php \Drupal\Tests\simpletest\Unit\TestInfoParsingTest::testTestInfoParserMissingSummary()
@covers ::getTestInfo
File
- core/
modules/ simpletest/ tests/ src/ Unit/ TestInfoParsingTest.php, line 224 - Contains \Drupal\Tests\simpletest\Unit\TestInfoParsingTest.
Class
- TestInfoParsingTest
- @coversDefaultClass \Drupal\simpletest\TestDiscovery @group simpletest
Namespace
Drupal\Tests\simpletest\UnitCode
public function testTestInfoParserMissingSummary() {
$classname = 'Drupal\\field\\Tests\\BulkDeleteTest';
$doc_comment = <<<EOT
/**
* @group field
*/
EOT;
$info = \Drupal\simpletest\TestDiscovery::getTestInfo($classname, $doc_comment);
$this
->assertEmpty($info['description']);
}