You are here

public function TestInfoParsingTest::testTestInfoParserMissingGroup in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php \Drupal\Tests\simpletest\Unit\TestInfoParsingTest::testTestInfoParserMissingGroup()

@covers ::getTestInfo @expectedException \Drupal\simpletest\Exception\MissingGroupException @expectedExceptionMessage Missing @group annotation in Drupal\field\Tests\BulkDeleteTest

File

core/modules/simpletest/tests/src/Unit/TestInfoParsingTest.php, line 211
Contains \Drupal\Tests\simpletest\Unit\TestInfoParsingTest.

Class

TestInfoParsingTest
@coversDefaultClass \Drupal\simpletest\TestDiscovery @group simpletest

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testTestInfoParserMissingGroup() {
  $classname = 'Drupal\\field\\Tests\\BulkDeleteTest';
  $doc_comment = <<<EOT
/**
 * Bulk delete storages and fields, and clean up afterwards.
 */
EOT;
  \Drupal\simpletest\TestDiscovery::getTestInfo($classname, $doc_comment);
}