function TestDiscoveryTest::testTestInfoParserMissingSummary
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParserMissingSummary()
- 8.9.x core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParserMissingSummary()
- 10 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 223
Class
- TestDiscoveryTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Test%21TestDiscovery.php/class/TestDiscovery/11.x" title="Discovers available tests." class="local">\Drupal\Core\Test\TestDiscovery</a> @group Test
Namespace
Drupal\Tests\Core\TestCode
public function testTestInfoParserMissingSummary() : void {
$classname = 'Drupal\\KernelTests\\field\\BulkDeleteTest';
$doc_comment = <<<EOT
/**
* @group field
*/
EOT;
$info = TestDiscovery::getTestInfo($classname, $doc_comment);
$this->assertEmpty($info['description']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.