Commit 3d31d12b authored by alexpott's avatar alexpott

Issue #2262147 by sun: Various base test classes are not abstract.

parent 5be9d3e3
......@@ -12,9 +12,9 @@
use Drupal\Component\Utility\String;
/**
* Tests for update translations.
* Base class for testing updates to string translations.
*/
class LocaleUpdateBase extends WebTestBase {
abstract class LocaleUpdateBase extends WebTestBase {
/**
* Timestamp for an old translation.
......
......@@ -10,9 +10,9 @@
use Drupal\simpletest\WebTestBase;
/**
* Defines a base class for menu web tests.
* Base class for menu web tests.
*/
class MenuWebTestBase extends WebTestBase {
abstract class MenuWebTestBase extends WebTestBase {
/**
* Modules to enable.
......
......@@ -13,7 +13,10 @@
use Drupal\migrate\Row;
use Drupal\simpletest\WebTestBase;
class MigrateTestBase extends WebTestBase implements MigrateMessageInterface {
/**
* Base class for migration tests.
*/
abstract class MigrateTestBase extends WebTestBase implements MigrateMessageInterface {
/**
* The file path(s) to the dumped database(s) to load into the child site.
......
......@@ -9,7 +9,10 @@
use Drupal\migrate\Tests\MigrateTestBase;
class MigrateDrupalTestBase extends MigrateTestBase {
/**
* Base class for Drupal migration tests.
*/
abstract class MigrateDrupalTestBase extends MigrateTestBase {
/**
* Modules to enable.
......
......@@ -9,7 +9,10 @@
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
class MigrateNodeTestBase extends MigrateDrupalTestBase {
/**
* Base class for Node migration tests.
*/
abstract class MigrateNodeTestBase extends MigrateDrupalTestBase {
static $modules = array('node');
......
......@@ -9,7 +9,10 @@
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
class MigrateTermNodeTestBase extends MigrateDrupalTestBase {
/**
* Base class for Taxonomy/Node migration tests.
*/
abstract class MigrateTermNodeTestBase extends MigrateDrupalTestBase {
/**
* {@inheritdoc}
......
......@@ -9,7 +9,10 @@
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;
class MigrateUploadBase extends MigrateDrupalTestBase {
/**
* Base class for file/upload migration tests.
*/
abstract class MigrateUploadBase extends MigrateDrupalTestBase {
/**
* {@inheritdoc}
......
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of Drupal\options\Tests\OptionsDynamicValuesTest.
* Contains \Drupal\options\Tests\OptionsDynamicValuesTestBase.
*/
namespace Drupal\options\Tests;
......@@ -10,9 +10,9 @@
use Drupal\field\Tests\FieldTestBase;
/**
* Sets up a Options field for testing allowed values functions.
* Base class for testing allowed values of options fields.
*/
class OptionsDynamicValuesTest extends FieldTestBase {
abstract class OptionsDynamicValuesTestBase extends FieldTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
/**
* Tests the Options field allowed values function.
*/
class OptionsDynamicValuesValidationTest extends OptionsDynamicValuesTest {
class OptionsDynamicValuesValidationTest extends OptionsDynamicValuesTestBase {
public static function getInfo() {
return array(
'name' => 'Options field dynamic values',
......
......@@ -11,9 +11,9 @@
use Drupal\field\Tests\FieldUnitTestBase;
/**
* Defines a common base test class for unit tests of the options module.
* Base class for Options module integration tests.
*/
class OptionsFieldUnitTestBase extends FieldUnitTestBase {
abstract class OptionsFieldUnitTestBase extends FieldUnitTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
/**
* Tests an options select with a dynamic allowed values function.
*/
class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTest {
class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTestBase {
public static function getInfo() {
return array(
'name' => 'Options select dynamic values',
......
......@@ -10,9 +10,9 @@
use Drupal\simpletest\DrupalUnitTestBase;
/**
* Parent class for Quick Edit tests.
* Base class for testing Quick Edit functionality.
*/
class QuickEditTestBase extends DrupalUnitTestBase {
abstract class QuickEditTestBase extends DrupalUnitTestBase {
/**
* Modules to enable.
......
......@@ -11,9 +11,9 @@
use Drupal\Core\Database\Database;
/**
* Defines a base class for path unit testing.
* Base class for Path/URL alias integration tests.
*/
class PathUnitTestBase extends DrupalUnitTestBase {
abstract class PathUnitTestBase extends DrupalUnitTestBase {
public function setUp() {
parent::setUp();
......
......@@ -10,9 +10,9 @@
use Drupal\simpletest\UnitTestBase;
/**
* Tests that plugins are correctly discovered.
* Base class for plugin discovery tests.
*/
class DiscoveryTestBase extends UnitTestBase {
abstract class DiscoveryTestBase extends UnitTestBase {
/**
* The discovery component to test.
......
......@@ -11,9 +11,9 @@
use Drupal\system\Tests\Entity\EntityUnitTestBase;
/**
* Test token replacement in strings.
* Base class for token replacement tests.
*/
class TokenReplaceUnitTestBase extends EntityUnitTestBase {
abstract class TokenReplaceUnitTestBase extends EntityUnitTestBase {
/**
* The interface language.
......
......@@ -10,9 +10,9 @@
use Drupal\simpletest\WebTestBase;
/**
* Tests tour functionality.
* Base class for testing Tour functionality.
*/
class TourTestBase extends WebTestBase {
abstract class TourTestBase extends WebTestBase {
/**
* Assert function to determine if tips rendered to the page
......
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