Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
286
Merge Requests
286
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
93d73d56
Commit
93d73d56
authored
May 06, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2216531
by Jalandhar, Mile23: Improve unit test annotation for SimpleTest.
parent
bb6730d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
...t/tests/Drupal/simpletest/Tests/PhpUnitAutoloaderTest.php
+3
-0
core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
...letest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
+5
-0
core/modules/simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
...simpletest/tests/Drupal/simpletest/Tests/TestBaseTest.php
+5
-0
core/modules/simpletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php
...pletest/tests/Drupal/simpletest/Tests/WebTestBaseTest.php
+3
-1
No files found.
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