summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-05-06 21:04:28 (GMT)
committerwebchick2014-05-06 21:04:28 (GMT)
commit93d73d567878d81f3f4c324fd20ba1b930124093 (patch)
treea032d1c15c18b6a3ca14a93044a5720cb55d7e5d
parentbb6730d5f9721ba682d040166e875af3b9950923 (diff)
Issue #2216531 by Jalandhar, Mile23: Improve unit test annotation for SimpleTest.
-rw-r--r--core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php3
-rw-r--r--core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php5
-rw-r--r--core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php5
-rw-r--r--core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php4
4 files changed, 16 insertions, 1 deletions
diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php b/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
index 8e2b7f5..bcb940e 100644
--- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
+++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
@@ -11,6 +11,9 @@ use Drupal\Tests\UnitTestCase;
/**
* Test PHPUnit autoloader works correctly.
+ *
+ * @group Drupal
+ * @group simpletest
*/
class PhpUnitAutoloaderTest extends UnitTestCase {
diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php b/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
index afe2b52..fdd38fa 100644
--- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
+++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
@@ -6,6 +6,9 @@ use Drupal\Tests\UnitTestCase;
/**
* Test PHPUnit errors are getting converted to Simpletest errors.
+ *
+ * @group Drupal
+ * @group simpletest
*/
class PhpUnitErrorTest extends UnitTestCase {
@@ -20,6 +23,8 @@ class PhpUnitErrorTest extends UnitTestCase {
/**
* 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
diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php b/core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
index 3988603..79b0345 100644
--- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
+++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
@@ -11,6 +11,10 @@ use Drupal\Tests\UnitTestCase;
/**
* 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 @@ class TestBaseTest extends UnitTestCase {
* @see \Drupal\simpletest\TestBase::randomStringValidate().
*
* @dataProvider randomStringValidateProvider
+ * @covers ::randomStringValidate
*/
public function testRandomStringValidate($string, $expected) {
$actual = $this->stub->randomStringValidate($string);
diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php b/core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php
index bbfdadd..8bce846 100644
--- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php
+++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php
@@ -13,7 +13,8 @@ use Drupal\Tests\UnitTestCase;
* 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 @@ class WebTestBaseTest extends UnitTestCase {
* @see \Drupal\simpletest\WebTestBase::assertFieldByName()
*
* @dataProvider providerAssertFieldByName
+ * @covers ::assertFieldByName
*/
public function testAssertFieldByName($filename, $name, $value, $expected) {
$content = file_get_contents(__DIR__ . '/Fixtures/' . $filename . '.html');