Commit 93d73d56 authored by webchick's avatar webchick

Issue #2216531 by Jalandhar, Mile23: Improve unit test annotation for SimpleTest.

parent bb6730d5
......@@ -11,6 +11,9 @@
/**
* Test PHPUnit autoloader works correctly.
*
* @group Drupal
* @group simpletest
*/
class PhpUnitAutoloaderTest extends UnitTestCase {
......
......@@ -6,6 +6,9 @@
/**
* Test PHPUnit errors are getting converted to Simpletest errors.
*
* @group Drupal
* @group simpletest
*/
class PhpUnitErrorTest extends UnitTestCase {
......@@ -20,6 +23,8 @@ public static function getInfo() {
/**
* Test errors reported.
*
* @covers ::simpletest_phpunit_xml_to_rows
*/
public function testPhpUnitXmlParsing() {
// This test class could be either in tests/Drupal/simpletest/Tests/, or in
......
......@@ -11,6 +11,10 @@
/**
* Tests helper methods provided by the abstract TestBase class.
*
* @coversDefaultClass \Drupal\simpletest\TestBase
* @group Drupal
* @group simpletest
*/
class TestBaseTest extends UnitTestCase {
......@@ -64,6 +68,7 @@ public function randomStringValidateProvider () {
* @see \Drupal\simpletest\TestBase::randomStringValidate().
*
* @dataProvider randomStringValidateProvider
* @covers ::randomStringValidate
*/
public function testRandomStringValidate($string, $expected) {
$actual = $this->stub->randomStringValidate($string);
......
......@@ -13,7 +13,8 @@
* Tests helper methods provided by the abstract WebTestBase class.
*
* @group Drupal
* @group Simpletest
* @group simpletest
* @coversDefaultClass \Drupal\simpletest\WebTestBase
*/
class WebTestBaseTest extends UnitTestCase {
......@@ -60,6 +61,7 @@ public function providerAssertFieldByName() {
* @see \Drupal\simpletest\WebTestBase::assertFieldByName()
*
* @dataProvider providerAssertFieldByName
* @covers ::assertFieldByName
*/
public function testAssertFieldByName($filename, $name, $value, $expected) {
$content = file_get_contents(__DIR__ . '/Fixtures/' . $filename . '.html');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment