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
224
Merge Requests
224
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
a7530e13
Commit
a7530e13
authored
Aug 03, 2012
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#1700682
by tim.plunkett, sun: run-tests.sh attempts to run abstract/base test classes.
parent
96e79846
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
31 additions
and
24 deletions
+31
-24
core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
...egator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
+1
-1
core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
...ules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
+1
-1
core/modules/field/lib/Drupal/field/Tests/FieldAttachTestBase.php
...ules/field/lib/Drupal/field/Tests/FieldAttachTestBase.php
+1
-1
core/modules/field/lib/Drupal/field/Tests/FieldTestBase.php
core/modules/field/lib/Drupal/field/Tests/FieldTestBase.php
+1
-1
core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUiTestBase.php
...es/field_ui/lib/Drupal/field_ui/Tests/FieldUiTestBase.php
+1
-1
core/modules/file/lib/Drupal/file/Tests/FileFieldTestBase.php
.../modules/file/lib/Drupal/file/Tests/FileFieldTestBase.php
+1
-1
core/modules/image/lib/Drupal/image/Tests/ImageFieldTestBase.php
...dules/image/lib/Drupal/image/Tests/ImageFieldTestBase.php
+1
-1
core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php
core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php
+1
-1
core/modules/path/lib/Drupal/path/Tests/PathTestBase.php
core/modules/path/lib/Drupal/path/Tests/PathTestBase.php
+1
-1
core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php
core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php
+1
-1
core/modules/poll/lib/Drupal/poll/Tests/PollTestBase.php
core/modules/poll/lib/Drupal/poll/Tests/PollTestBase.php
+1
-1
core/modules/search/lib/Drupal/search/Tests/SearchTestBase.php
...modules/search/lib/Drupal/search/Tests/SearchTestBase.php
+1
-1
core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php
...s/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php
+1
-1
core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsTestBase.php
...istics/lib/Drupal/statistics/Tests/StatisticsTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php
...ules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php
...es/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/Database/DatabaseTestBase.php
...tem/lib/Drupal/system/Tests/Database/DatabaseTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/File/FileHookTestBase.php
.../system/lib/Drupal/system/Tests/File/FileHookTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php
...ules/system/lib/Drupal/system/Tests/File/FileTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php
.../system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/Menu/MenuTestBase.php
...ules/system/lib/Drupal/system/Tests/Menu/MenuTestBase.php
+1
-1
core/modules/system/lib/Drupal/system/Tests/Module/ModuleTestBase.php
.../system/lib/Drupal/system/Tests/Module/ModuleTestBase.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTestBase.php
...s/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTestBase.php
+1
-1
core/modules/update/lib/Drupal/update/Tests/UpdateTestBase.php
...modules/update/lib/Drupal/update/Tests/UpdateTestBase.php
+1
-1
core/scripts/run-tests.sh
core/scripts/run-tests.sh
+7
-0
No files found.
core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Defines a base class for testing aggregator.module.
*/
class
AggregatorTestBase
extends
WebTestBase
{
abstract
class
AggregatorTestBase
extends
WebTestBase
{
function
setUp
()
{
parent
::
setUp
(
array
(
'node'
,
'block'
,
'aggregator'
,
'aggregator_test'
));
...
...
core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
View file @
a7530e13
...
...
@@ -10,7 +10,7 @@
use
Drupal\comment\Comment
;
use
Drupal\simpletest\WebTestBase
;
class
CommentTestBase
extends
WebTestBase
{
abstract
class
CommentTestBase
extends
WebTestBase
{
protected
$profile
=
'standard'
;
protected
$admin_user
;
...
...
core/modules/field/lib/Drupal/field/Tests/FieldAttachTestBase.php
View file @
a7530e13
...
...
@@ -7,7 +7,7 @@
namespace
Drupal\field\Tests
;
class
FieldAttachTestBase
extends
FieldTestBase
{
abstract
class
FieldAttachTestBase
extends
FieldTestBase
{
function
setUp
()
{
// Since this is a base class for many test cases, support the same
// flexibility that Drupal\simpletest\WebTestBase::setUp() has for the
...
...
core/modules/field/lib/Drupal/field/Tests/FieldTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Parent class for Field API tests.
*/
class
FieldTestBase
extends
WebTestBase
{
abstract
class
FieldTestBase
extends
WebTestBase
{
var
$default_storage
=
'field_sql_storage'
;
/**
...
...
core/modules/field_ui/lib/Drupal/field_ui/Tests/FieldUiTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Provides common functionality for the Field UI test classes.
*/
class
FieldUiTestBase
extends
WebTestBase
{
abstract
class
FieldUiTestBase
extends
WebTestBase
{
public
static
$modules
=
array
(
'node'
,
'field_ui'
,
'field_test'
,
'taxonomy'
);
function
setUp
()
{
...
...
core/modules/file/lib/Drupal/file/Tests/FileFieldTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Provides methods specifically for testing File module's field handling.
*/
class
FileFieldTestBase
extends
WebTestBase
{
abstract
class
FileFieldTestBase
extends
WebTestBase
{
protected
$profile
=
'standard'
;
protected
$admin_user
;
...
...
core/modules/image/lib/Drupal/image/Tests/ImageFieldTestBase.php
View file @
a7530e13
...
...
@@ -32,7 +32,7 @@
/**
* This class provides methods specifically for testing Image's field handling.
*/
class
ImageFieldTestBase
extends
WebTestBase
{
abstract
class
ImageFieldTestBase
extends
WebTestBase
{
protected
$admin_user
;
function
setUp
()
{
...
...
core/modules/node/lib/Drupal/node/Tests/NodeTestBase.php
View file @
a7530e13
...
...
@@ -9,7 +9,7 @@
use
Drupal\simpletest\WebTestBase
;
class
NodeTestBase
extends
WebTestBase
{
abstract
class
NodeTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/path/lib/Drupal/path/Tests/PathTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Provides a base class for testing the Path module.
*/
class
PathTestBase
extends
WebTestBase
{
abstract
class
PathTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/php/lib/Drupal/php/Tests/PhpTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Defines a base PHP test case class.
*/
class
PhpTestBase
extends
WebTestBase
{
abstract
class
PhpTestBase
extends
WebTestBase
{
protected
$php_code_format
;
function
setUp
()
{
...
...
core/modules/poll/lib/Drupal/poll/Tests/PollTestBase.php
View file @
a7530e13
...
...
@@ -9,7 +9,7 @@
use
Drupal\simpletest\WebTestBase
;
class
PollTestBase
extends
WebTestBase
{
abstract
class
PollTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/search/lib/Drupal/search/Tests/SearchTestBase.php
View file @
a7530e13
...
...
@@ -9,7 +9,7 @@
use
Drupal\simpletest\WebTestBase
;
class
SearchTestBase
extends
WebTestBase
{
abstract
class
SearchTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutTestBase.php
View file @
a7530e13
...
...
@@ -13,7 +13,7 @@
/**
* Defines base class for shortcut test cases.
*/
class
ShortcutTestBase
extends
WebTestBase
{
abstract
class
ShortcutTestBase
extends
WebTestBase
{
/**
* User with permission to administer shortcuts.
...
...
core/modules/statistics/lib/Drupal/statistics/Tests/StatisticsTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Defines a base class for testing the Statistics module.
*/
class
StatisticsTestBase
extends
WebTestBase
{
abstract
class
StatisticsTestBase
extends
WebTestBase
{
function
setUp
()
{
parent
::
setUp
(
array
(
'node'
,
'block'
,
'statistics'
));
...
...
core/modules/system/lib/Drupal/system/Tests/Ajax/AjaxTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Base test system for AJAX tests.
*/
class
AjaxTestBase
extends
WebTestBase
{
abstract
class
AjaxTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Provides helper methods for cache tests.
*/
class
CacheTestBase
extends
WebTestBase
{
abstract
class
CacheTestBase
extends
WebTestBase
{
protected
$default_bin
=
'page'
;
protected
$default_cid
=
'test_temporary'
;
protected
$default_value
=
'CacheTest'
;
...
...
core/modules/system/lib/Drupal/system/Tests/Database/DatabaseTestBase.php
View file @
a7530e13
...
...
@@ -15,7 +15,7 @@
* Because all database tests share the same test data, we can centralize that
* here.
*/
class
DatabaseTestBase
extends
WebTestBase
{
abstract
class
DatabaseTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/system/lib/Drupal/system/Tests/File/FileHookTestBase.php
View file @
a7530e13
...
...
@@ -11,7 +11,7 @@
* Base class for file tests that use the file_test module to test uploads and
* hooks.
*/
class
FileHookTestBase
extends
FileTestBase
{
abstract
class
FileHookTestBase
extends
FileTestBase
{
function
setUp
()
{
// Install file_test module
parent
::
setUp
(
'file_test'
);
...
...
core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php
View file @
a7530e13
...
...
@@ -14,7 +14,7 @@
* Base class for file tests that adds some additional file specific
* assertions and helper functions.
*/
class
FileTestBase
extends
WebTestBase
{
abstract
class
FileTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
...
...
core/modules/system/lib/Drupal/system/Tests/Image/ToolkitTestBase.php
View file @
a7530e13
...
...
@@ -13,7 +13,7 @@
/**
* Base class for image manipulation testing.
*/
class
ToolkitTestBase
extends
WebTestBase
{
abstract
class
ToolkitTestBase
extends
WebTestBase
{
protected
$toolkit
;
protected
$file
;
protected
$image
;
...
...
core/modules/system/lib/Drupal/system/Tests/Menu/MenuTestBase.php
View file @
a7530e13
...
...
@@ -9,7 +9,7 @@
use
Drupal\simpletest\WebTestBase
;
class
MenuTestBase
extends
WebTestBase
{
abstract
class
MenuTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
if
(
isset
(
$modules
[
0
])
&&
is_array
(
$modules
[
0
]))
{
...
...
core/modules/system/lib/Drupal/system/Tests/Module/ModuleTestBase.php
View file @
a7530e13
...
...
@@ -15,7 +15,7 @@
/**
* Helper class for module test cases.
*/
class
ModuleTestBase
extends
WebTestBase
{
abstract
class
ModuleTestBase
extends
WebTestBase
{
protected
$admin_user
;
function
setUp
()
{
...
...
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTestBase.php
View file @
a7530e13
...
...
@@ -12,7 +12,7 @@
/**
* Provides common helper methods for Taxonomy module tests.
*/
class
TaxonomyTestBase
extends
WebTestBase
{
abstract
class
TaxonomyTestBase
extends
WebTestBase
{
function
setUp
()
{
$modules
=
func_get_args
();
...
...
core/modules/update/lib/Drupal/update/Tests/UpdateTestBase.php
View file @
a7530e13
...
...
@@ -26,7 +26,7 @@
/**
* Defines some shared functions used by all update tests.
*/
class
UpdateTestBase
extends
WebTestBase
{
abstract
class
UpdateTestBase
extends
WebTestBase
{
/**
* Refreshes the update status based on the desired available update scenario.
...
...
core/scripts/run-tests.sh
View file @
a7530e13
...
...
@@ -549,6 +549,13 @@ function simpletest_script_get_test_list() {
}
}
// Filter out abstract classes.
foreach
(
$test_list
as
$i
=>
$test_class
)
{
$class_info
=
new
\R
eflectionClass
(
$test_class
)
;
if
(
$class_info
->isAbstract
())
{
unset
(
$test_list
[
$i
])
;
}
}
if
(
empty
(
$test_list
))
{
simpletest_script_print_error
(
'No valid tests were specified.'
)
;
exit
;
...
...
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