Commit 220ae7c7 authored by webchick's avatar webchick

Issue #1893108 follow-up by Berdir, dawehner: Rename EntityUnitBaseTest =>...

Issue #1893108 follow-up by Berdir, dawehner: Rename EntityUnitBaseTest => EntityUnitTestBase to conform to coding standards.
parent 79bfd241
......@@ -15,7 +15,7 @@
/**
* Tests the entity access controller.
*/
class EntityAccessTest extends EntityUnitBaseTest {
class EntityAccessTest extends EntityUnitTestBase {
public static $modules = array('language', 'locale');
......
......@@ -12,7 +12,7 @@
/**
* Tests the basic Entity API.
*/
class EntityApiTest extends EntityUnitBaseTest {
class EntityApiTest extends EntityUnitTestBase {
public static function getInfo() {
return array(
......
......@@ -21,7 +21,7 @@
* As well as all type-specific hooks, like hook_node_insert(),
* hook_comment_update(), etc.
*/
class EntityCrudHookTest extends EntityUnitBaseTest {
class EntityCrudHookTest extends EntityUnitTestBase {
/**
* Modules to enable.
......
......@@ -15,7 +15,7 @@
/**
* Tests Entity API base functionality.
*/
class EntityFieldTest extends EntityUnitBaseTest {
class EntityFieldTest extends EntityUnitTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
/**
* Tests entity properties.
*/
class EntityLabelTest extends EntityUnitBaseTest {
class EntityLabelTest extends EntityUnitTestBase {
public static function getInfo() {
return array(
......
......@@ -12,18 +12,16 @@
/**
* Defines a test for testing aggregation support for entity query.
*
* @todo Use EntityUnitBaseTest provided by http://drupal.org/node/1893108.
*
* @see \Drupal\entity_test\Plugin\Core\Entity\EntityTest
*/
class EntityQueryAggregateTest extends DrupalUnitTestBase {
class EntityQueryAggregateTest extends EntityUnitTestBase {
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array('user', 'system', 'field', 'number', 'text', 'field_sql_storage', 'entity_test');
public static $modules = array('number');
/**
* The entity_test storage controller to create the test entities.
......@@ -54,13 +52,8 @@ public static function getInfo() {
);
}
protected function setUp() {
public function setUp() {
parent::setUp();
$this->installSchema('user', 'users');
$this->installSchema('system', 'sequences');
$this->installSchema('field', 'field_config');
$this->installSchema('field', 'field_config_instance');
$this->installSchema('entity_test', 'entity_test');
$this->entityStorageController = $this->container->get('plugin.manager.entity')->getStorageController('entity_test');
$this->factory = $this->container->get('entity.query');
......
......@@ -10,7 +10,7 @@
/**
* Tests Entity Query API relationship functionality.
*/
class EntityQueryRelationshipTest extends EntityUnitBaseTest {
class EntityQueryRelationshipTest extends EntityUnitTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
/**
* Tests the basic Entity API.
*/
class EntityQueryTest extends EntityUnitBaseTest {
class EntityQueryTest extends EntityUnitTestBase {
/**
* Modules to enable.
......
......@@ -14,7 +14,7 @@
/**
* Tests entity translation.
*/
class EntityTranslationTest extends EntityUnitBaseTest {
class EntityTranslationTest extends EntityUnitTestBase {
protected $langcodes;
......
......@@ -12,7 +12,7 @@
/**
* Tests creation, saving, and loading of entity UUIDs.
*/
class EntityUUIDTest extends EntityUnitBaseTest {
class EntityUUIDTest extends EntityUnitTestBase {
public static function getInfo() {
return array(
......
......@@ -2,7 +2,7 @@
/**
* @file
* Contains \Drupal\system\Tests\Entity\EntityApiTest.
* Contains \Drupal\system\Tests\Entity\EntityUnitTestBase.
*/
namespace Drupal\system\Tests\Entity;
......@@ -12,7 +12,7 @@
/**
* Defines an abstract test base for entity unit tests.
*/
abstract class EntityUnitBaseTest extends DrupalUnitTestBase {
abstract class EntityUnitTestBase extends DrupalUnitTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
/**
* Tests the basic Entity API.
*/
class EntityUriTest extends EntityUnitBaseTest {
class EntityUriTest extends EntityUnitTestBase {
public static function getInfo() {
return array(
......
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