You are here

public function TestInfoParsingTest::testTestInfoParserMissingSummary 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::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\Unit

Code

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']);
}