Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
93d73d56
Commit
93d73d56
authored
May 06, 2014
by
webchick
Browse files
Issue
#2216531
by Jalandhar, Mile23: Improve unit test annotation for SimpleTest.
parent
bb6730d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
View file @
93d73d56
...
...
@@ -11,6 +11,9 @@
/**
* Test PHPUnit autoloader works correctly.
*
* @group Drupal
* @group simpletest
*/
class
PhpUnitAutoloaderTest
extends
UnitTestCase
{
...
...
core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
View file @
93d73d56
...
...
@@ -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
...
...
core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
View file @
93d73d56
...
...
@@ -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
);
...
...
core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php
View file @
93d73d56
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment