Commit 3d73a39c authored by alexpott's avatar alexpott

Issue #2546416 by borisson_, lauriii: Rename ViewUnitTestBase to ViewKernelTestBase

parent 13e93a9e
......@@ -11,14 +11,14 @@
use Drupal\Core\Url;
use Drupal\views\Views;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
/**
* Tests basic integration of views data from the aggregator module.
*
* @group aggregator
*/
class IntegrationTest extends ViewUnitTestBase {
class IntegrationTest extends ViewKernelTestBase {
/**
* Modules to install.
......
......@@ -12,7 +12,7 @@
use Drupal\user\Entity\Role;
use Drupal\user\Entity\User;
use Drupal\views\Entity\View;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -20,7 +20,7 @@
*
* @group comment
*/
class CommentUserNameTest extends ViewUnitTestBase {
class CommentUserNameTest extends ViewKernelTestBase {
/**
* Admin user.
......
......@@ -13,14 +13,14 @@
use Drupal\Core\Url;
use Drupal\views\Views;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
/**
* Tests the views integration of dblog module.
*
* @group dblog
*/
class ViewsIntegrationTest extends ViewUnitTestBase {
class ViewsIntegrationTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -11,7 +11,7 @@
use Drupal\entity_test\Entity\EntityTest;
use Drupal\entity_test\Entity\EntityTestMul;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -20,7 +20,7 @@
* @group entity_reference
* @see entity_reference_field_views_data()
*/
class EntityReferenceRelationshipTest extends ViewUnitTestBase {
class EntityReferenceRelationshipTest extends ViewKernelTestBase {
use EntityReferenceTestTrait;
......
......@@ -10,7 +10,7 @@
use Drupal\Core\Render\RenderContext;
use Drupal\file\Entity\File;
use Drupal\views\Views;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Tests\ViewTestData;
/**
......@@ -18,7 +18,7 @@
*
* @group file
*/
class ExtensionViewsFieldTest extends ViewUnitTestBase {
class ExtensionViewsFieldTest extends ViewKernelTestBase {
/**
* {@inheritdoc}
......
......@@ -9,7 +9,7 @@
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -17,7 +17,7 @@
*
* @group file
*/
class FileViewsDataTest extends ViewUnitTestBase {
class FileViewsDataTest extends ViewKernelTestBase {
/**
* Modules to install.
......
......@@ -9,7 +9,7 @@
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -17,7 +17,7 @@
*
* @group image
*/
class ImageViewsDataTest extends ViewUnitTestBase {
class ImageViewsDataTest extends ViewKernelTestBase {
/**
* Modules to install.
......
......@@ -8,12 +8,12 @@
namespace Drupal\language\Tests\Views;
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
/**
* Defines the base class for all Language handler tests.
*/
abstract class LanguageTestBase extends ViewUnitTestBase {
abstract class LanguageTestBase extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -13,12 +13,12 @@
use Drupal\node\Entity\NodeType;
use Drupal\views\Tests\ViewTestBase;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
/**
* Base class for options views tests.
*/
abstract class OptionsTestBase extends ViewUnitTestBase {
abstract class OptionsTestBase extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -8,8 +8,6 @@
namespace Drupal\user\Tests\Views;
use Drupal\views\Views;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
/**
* Tests the permission field handler.
......@@ -17,7 +15,7 @@
* @group user
* @see \Drupal\user\Plugin\views\field\Permissions
*/
class HandlerFieldPermissionTest extends UserUnitTestBase {
class HandlerFieldPermissionTest extends UserKernelTestBase {
/**
* Views used by this test.
......
......@@ -8,7 +8,6 @@
namespace Drupal\user\Tests\Views;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\user\Tests\Views\UserUnitTestBase;
use Drupal\views\Views;
/**
......@@ -17,7 +16,7 @@
* @group user
* @see \Drupal\user\Plugin\views\filter\Permissions
*/
class HandlerFilterPermissionTest extends UserUnitTestBase {
class HandlerFilterPermissionTest extends UserKernelTestBase {
/**
* Views used by this test.
......
......@@ -8,7 +8,6 @@
namespace Drupal\user\Tests\Views;
use Drupal\user\Entity\Role;
use Drupal\user\Tests\Views\UserUnitTestBase;
use Drupal\views\Entity\View;
use Drupal\views\Views;
......@@ -19,7 +18,7 @@
*
* @see \Drupal\user\Plugin\views\filter\Roles
*/
class HandlerFilterRolesTest extends UserUnitTestBase {
class HandlerFilterRolesTest extends UserKernelTestBase {
/**
* Views used by this test.
......
......@@ -2,18 +2,18 @@
/**
* @file
* Contains \Drupal\user\Tests\Views\UserUnitTestBase.
* Contains \Drupal\user\Tests\Views\UserKernelTestBase.
*/
namespace Drupal\user\Tests\Views;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
/**
* Provides a common test base for user views tests.
*/
abstract class UserUnitTestBase extends ViewUnitTestBase {
abstract class UserKernelTestBase extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -14,7 +14,7 @@
*
* @group views
*/
class BasicTest extends ViewUnitTestBase {
class BasicTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -9,7 +9,7 @@
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\node\Entity\NodeType;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -18,7 +18,7 @@
* @group views
* @see \Drupal\views\Entity\Render\RendererBase
*/
class RowEntityRenderersTest extends ViewUnitTestBase {
class RowEntityRenderersTest extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -10,7 +10,7 @@
use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\views\Tests\ViewTestData;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -18,7 +18,7 @@
*
* @group views
*/
class ViewEntityDependenciesTest extends ViewUnitTestBase {
class ViewEntityDependenciesTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -11,14 +11,14 @@
use Drupal\Core\Entity\EntityTypeEvents;
use Drupal\system\Tests\Entity\EntityDefinitionTestTrait;
use Drupal\views\Entity\View;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
/**
* Tests \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber
*
* @group Views
*/
class ViewsEntitySchemaSubscriberIntegrationTest extends ViewUnitTestBase {
class ViewsEntitySchemaSubscriberIntegrationTest extends ViewKernelTestBase {
use EntityDefinitionTestTrait;
......
......@@ -11,7 +11,7 @@
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Form\FormState;
use Drupal\views\Entity\View;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -20,7 +20,7 @@
* @group views
* @see \Drupal\views\Plugin\views\area\Entity
*/
class AreaEntityTest extends ViewUnitTestBase {
class AreaEntityTest extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
* @group views
* @see \Drupal\views\Plugin\views\area\Text
*/
class AreaTextTest extends ViewUnitTestBase {
class AreaTextTest extends ViewKernelTestBase {
public static $modules = array('system', 'user', 'filter');
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
* @group views
* @see \Drupal\views\Plugin\views\area\Title
*/
class AreaTitleTest extends ViewUnitTestBase {
class AreaTitleTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
* @group views
* @see \Drupal\views\Plugin\views\area\View
*/
class AreaViewTest extends ViewUnitTestBase {
class AreaViewTest extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
* @group views
* @see \Drupal\views\Plugin\views\argument\Date
*/
class ArgumentDateTest extends ViewUnitTestBase {
class ArgumentDateTest extends ViewKernelTestBase {
/**
* Views used by this test.
......@@ -35,7 +35,7 @@ class ArgumentDateTest extends ViewUnitTestBase {
);
/**
* Overrides \Drupal\views\Tests\ViewUnitTestBase::viewsData().
* Overrides \Drupal\views\Tests\ViewKernelTestBase::viewsData().
*/
public function viewsData() {
$data = parent::viewsData();
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class ArgumentNullTest extends ViewUnitTestBase {
class ArgumentNullTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FieldBooleanTest extends ViewUnitTestBase {
class FieldBooleanTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FieldCounterTest extends ViewUnitTestBase {
class FieldCounterTest extends ViewKernelTestBase {
/**
* Modules to enable.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FieldCustomTest extends ViewUnitTestBase {
class FieldCustomTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FieldDateTest extends ViewUnitTestBase {
class FieldDateTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -10,7 +10,7 @@
use Drupal\Core\Session\AccountInterface;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\simpletest\UserCreationTrait;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -18,7 +18,7 @@
*
* @group views
*/
class FieldEntityLinkTest extends ViewUnitTestBase {
class FieldEntityLinkTest extends ViewKernelTestBase {
use UserCreationTrait;
......
......@@ -10,13 +10,13 @@
use Drupal\user\Entity\Role;
use Drupal\user\Entity\User;
use Drupal\views\Entity\View;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
* Provides a base class for base field access in views.
*/
abstract class FieldFieldAccessTestBase extends ViewUnitTestBase {
abstract class FieldFieldAccessTestBase extends ViewKernelTestBase {
/**
* Stores an user entity with access to fields.
......
......@@ -14,7 +14,7 @@
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\user\Entity\User;
use Drupal\views\Plugin\views\field\Field;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -23,7 +23,7 @@
* @see \Drupal\views\Plugin\views\field\Field
* @group views
*/
class FieldFieldTest extends ViewUnitTestBase {
class FieldFieldTest extends ViewKernelTestBase {
/**
* {@inheritdoc}
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
* @group views
* @see CommonXssUnitTest
*/
class FieldFileSizeTest extends ViewUnitTestBase {
class FieldFileSizeTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\views\Tests\Handler\FieldUnitTest.
* Contains \Drupal\views\Tests\Handler\FieldKernelTest.
*/
namespace Drupal\views\Tests\Handler;
use Drupal\Core\Render\RenderContext;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\Views;
......@@ -18,7 +18,7 @@
* @group views
* @see \Drupal\views\Plugin\views\field\FieldPluginBase
*/
class FieldUnitTest extends ViewUnitTestBase {
class FieldKernelTest extends ViewKernelTestBase {
public static $modules = array('user');
......
......@@ -8,7 +8,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\Core\Url;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
*
* @group views
*/
class FieldUrlTest extends ViewUnitTestBase {
class FieldUrlTest extends ViewKernelTestBase {
public static $modules = array('system');
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -17,7 +17,7 @@
* @group views
* @see \Drupal\views\Plugin\views\filter\BooleanOperatorString
*/
class FilterBooleanOperatorStringTest extends ViewUnitTestBase {
class FilterBooleanOperatorStringTest extends ViewKernelTestBase {
/**
* The modules to enable for this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -16,7 +16,7 @@
* @group views
* @see \Drupal\views\Plugin\views\filter\BooleanOperator
*/
class FilterBooleanOperatorTest extends ViewUnitTestBase {
class FilterBooleanOperatorTest extends ViewKernelTestBase {
/**
* The modules to enable for this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FilterCombineTest extends ViewUnitTestBase {
class FilterCombineTest extends ViewKernelTestBase {
/**
* Views used by this test.
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FilterEqualityTest extends ViewUnitTestBase {
class FilterEqualityTest extends ViewKernelTestBase {
public static $modules = array('system');
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FilterInOperatorTest extends ViewUnitTestBase {
class FilterInOperatorTest extends ViewKernelTestBase {
public static $modules = array('system');
......
......@@ -7,7 +7,7 @@
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewUnitTestBase;
use Drupal\views\Tests\ViewKernelTestBase;
use Drupal\views\Views;
/**
......@@ -15,7 +15,7 @@
*
* @group views
*/
class FilterNumericTest extends ViewUnitTestBase {
class FilterNumericTest extends ViewKernelTestBase {