public function TestDiscoveryTest::testTestInfoParserMissingSummary in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParserMissingSummary()
- 9 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParserMissingSummary()
@covers ::getTestInfo
File
- core/
tests/ Drupal/ Tests/ Core/ Test/ TestDiscoveryTest.php, line 221
Class
- TestDiscoveryTest
- @coversDefaultClass \Drupal\Core\Test\TestDiscovery @group Test
Namespace
Drupal\Tests\Core\TestCode
public function testTestInfoParserMissingSummary() {
$classname = 'Drupal\\KernelTests\\field\\BulkDeleteTest';
$doc_comment = <<<EOT
/**
* @group field
*/
EOT;
$info = TestDiscovery::getTestInfo($classname, $doc_comment);
$this
->assertEmpty($info['description']);
}