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
309
Merge Requests
309
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
ee9f19cf
Commit
ee9f19cf
authored
Mar 15, 2016
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2553655
by dawehner, Berdir, martin107: Convert ViewKernelTestBase to use KernelTestBaseTNG
parent
e6f491d8
Changes
101
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
101 changed files
with
428 additions
and
430 deletions
+428
-430
core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php
...Core/DependencyInjection/DependencySerializationTrait.php
+4
-0
core/modules/aggregator/tests/src/Kernel/Views/AggregatorFeedViewsFieldAccessTest.php
...s/src/Kernel/Views/AggregatorFeedViewsFieldAccessTest.php
+3
-3
core/modules/aggregator/tests/src/Kernel/Views/AggregatorItemViewsFieldAccessTest.php
...s/src/Kernel/Views/AggregatorItemViewsFieldAccessTest.php
+3
-3
core/modules/aggregator/tests/src/Kernel/Views/IntegrationTest.php
...les/aggregator/tests/src/Kernel/Views/IntegrationTest.php
+6
-6
core/modules/comment/tests/src/Kernel/Views/CommentLinksTest.php
...dules/comment/tests/src/Kernel/Views/CommentLinksTest.php
+3
-3
core/modules/comment/tests/src/Kernel/Views/CommentUserNameTest.php
...es/comment/tests/src/Kernel/Views/CommentUserNameTest.php
+4
-4
core/modules/comment/tests/src/Kernel/Views/CommentViewsFieldAccessTest.php
...nt/tests/src/Kernel/Views/CommentViewsFieldAccessTest.php
+3
-3
core/modules/comment/tests/src/Kernel/Views/CommentViewsKernelTestBase.php
...ent/tests/src/Kernel/Views/CommentViewsKernelTestBase.php
+4
-4
core/modules/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php
...les/dblog/tests/src/Kernel/Views/ViewsIntegrationTest.php
+5
-5
core/modules/field/tests/src/Kernel/EntityReference/Views/EntityReferenceRelationshipTest.php
...EntityReference/Views/EntityReferenceRelationshipTest.php
+5
-5
core/modules/file/tests/src/Kernel/Views/ExtensionViewsFieldTest.php
...s/file/tests/src/Kernel/Views/ExtensionViewsFieldTest.php
+5
-5
core/modules/file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
.../file/tests/src/Kernel/Views/FileViewsFieldAccessTest.php
+3
-3
core/modules/image/tests/src/Kernel/Views/ImageViewsDataTest.php
...dules/image/tests/src/Kernel/Views/ImageViewsDataTest.php
+4
-4
core/modules/language/tests/src/Kernel/Views/ArgumentLanguageTest.php
.../language/tests/src/Kernel/Views/ArgumentLanguageTest.php
+2
-2
core/modules/language/tests/src/Kernel/Views/FieldLanguageTest.php
...les/language/tests/src/Kernel/Views/FieldLanguageTest.php
+2
-2
core/modules/language/tests/src/Kernel/Views/FilterLanguageTest.php
...es/language/tests/src/Kernel/Views/FilterLanguageTest.php
+2
-2
core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php
...ules/language/tests/src/Kernel/Views/LanguageTestBase.php
+5
-5
core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php
core/modules/node/tests/src/Kernel/Views/NidArgumentTest.php
+4
-4
core/modules/node/tests/src/Kernel/Views/NodeViewsFieldAccessTest.php
.../node/tests/src/Kernel/Views/NodeViewsFieldAccessTest.php
+3
-3
core/modules/node/tests/src/Kernel/Views/RevisionCreateTimestampTest.php
...de/tests/src/Kernel/Views/RevisionCreateTimestampTest.php
+4
-4
core/modules/options/tests/src/Kernel/Views/FileViewsDataTest.php
...ules/options/tests/src/Kernel/Views/FileViewsDataTest.php
+4
-4
core/modules/options/tests/src/Kernel/Views/OptionsListArgumentTest.php
...ptions/tests/src/Kernel/Views/OptionsListArgumentTest.php
+2
-2
core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
.../options/tests/src/Kernel/Views/OptionsListFilterTest.php
+2
-2
core/modules/options/tests/src/Kernel/Views/OptionsTestBase.php
...odules/options/tests/src/Kernel/Views/OptionsTestBase.php
+5
-5
core/modules/options/tests/src/Kernel/Views/ViewsDataTest.php
.../modules/options/tests/src/Kernel/Views/ViewsDataTest.php
+3
-3
core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php
...y/tests/src/Kernel/Views/TaxonomyViewsFieldAccessTest.php
+3
-3
core/modules/user/tests/src/Kernel/Views/HandlerFieldPermissionTest.php
...ser/tests/src/Kernel/Views/HandlerFieldPermissionTest.php
+3
-2
core/modules/user/tests/src/Kernel/Views/HandlerFilterPermissionTest.php
...er/tests/src/Kernel/Views/HandlerFilterPermissionTest.php
+2
-2
core/modules/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php
...es/user/tests/src/Kernel/Views/HandlerFilterRolesTest.php
+3
-2
core/modules/user/tests/src/Kernel/Views/UserKernelTestBase.php
...odules/user/tests/src/Kernel/Views/UserKernelTestBase.php
+5
-5
core/modules/user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php
.../user/tests/src/Kernel/Views/UserViewsFieldAccessTest.php
+3
-3
core/modules/views/src/Plugin/views/field/Field.php
core/modules/views/src/Plugin/views/field/Field.php
+1
-1
core/modules/views/src/Tests/ViewTestBase.php
core/modules/views/src/Tests/ViewTestBase.php
+2
-2
core/modules/views/src/Tests/ViewTestData.php
core/modules/views/src/Tests/ViewTestData.php
+1
-1
core/modules/views/src/Tests/Wizard/BasicTest.php
core/modules/views/src/Tests/Wizard/BasicTest.php
+1
-1
core/modules/views/src/ViewExecutable.php
core/modules/views/src/ViewExecutable.php
+18
-14
core/modules/views/tests/src/Kernel/BasicTest.php
core/modules/views/tests/src/Kernel/BasicTest.php
+3
-3
core/modules/views/tests/src/Kernel/Entity/RowEntityRenderersTest.php
.../views/tests/src/Kernel/Entity/RowEntityRenderersTest.php
+5
-5
core/modules/views/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
...ws/tests/src/Kernel/Entity/ViewEntityDependenciesTest.php
+5
-5
core/modules/views/tests/src/Kernel/EventSubscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
...Subscriber/ViewsEntitySchemaSubscriberIntegrationTest.php
+5
-7
core/modules/views/tests/src/Kernel/Handler/AreaEntityTest.php
...modules/views/tests/src/Kernel/Handler/AreaEntityTest.php
+5
-5
core/modules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
...dules/views/tests/src/Kernel/Handler/AreaMessagesTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
core/modules/views/tests/src/Kernel/Handler/AreaTextTest.php
+5
-5
core/modules/views/tests/src/Kernel/Handler/AreaTitleTest.php
.../modules/views/tests/src/Kernel/Handler/AreaTitleTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/AreaViewTest.php
core/modules/views/tests/src/Kernel/Handler/AreaViewTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/ArgumentDateTest.php
...dules/views/tests/src/Kernel/Handler/ArgumentDateTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
...dules/views/tests/src/Kernel/Handler/ArgumentNullTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/EntityTestViewsFieldAccessTest.php
...sts/src/Kernel/Handler/EntityTestViewsFieldAccessTest.php
+3
-2
core/modules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
...dules/views/tests/src/Kernel/Handler/FieldBooleanTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
...dules/views/tests/src/Kernel/Handler/FieldCounterTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldCustomTest.php
...odules/views/tests/src/Kernel/Handler/FieldCustomTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php
.../modules/views/tests/src/Kernel/Handler/FieldDateTest.php
+6
-6
core/modules/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php
...es/views/tests/src/Kernel/Handler/FieldEntityLinkTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php
...ews/tests/src/Kernel/Handler/FieldFieldAccessTestBase.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
...modules/views/tests/src/Kernel/Handler/FieldFieldTest.php
+5
-5
core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
...ules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldKernelTest.php
...odules/views/tests/src/Kernel/Handler/FieldKernelTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldRenderedEntityTest.php
...iews/tests/src/Kernel/Handler/FieldRenderedEntityTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
+5
-5
core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorStringTest.php
...ts/src/Kernel/Handler/FilterBooleanOperatorStringTest.php
+4
-14
core/modules/views/tests/src/Kernel/Handler/FilterBooleanOperatorTest.php
...ws/tests/src/Kernel/Handler/FilterBooleanOperatorTest.php
+4
-10
core/modules/views/tests/src/Kernel/Handler/FilterCombineTest.php
...ules/views/tests/src/Kernel/Handler/FilterCombineTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
...les/views/tests/src/Kernel/Handler/FilterEqualityTest.php
+4
-10
core/modules/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
...s/views/tests/src/Kernel/Handler/FilterInOperatorTest.php
+4
-10
core/modules/views/tests/src/Kernel/Handler/FilterNumericTest.php
...ules/views/tests/src/Kernel/Handler/FilterNumericTest.php
+4
-10
core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
...dules/views/tests/src/Kernel/Handler/FilterStringTest.php
+4
-10
core/modules/views/tests/src/Kernel/Handler/HandlerAliasTest.php
...dules/views/tests/src/Kernel/Handler/HandlerAliasTest.php
+5
-5
core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
core/modules/views/tests/src/Kernel/Handler/SortDateTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/SortRandomTest.php
...modules/views/tests/src/Kernel/Handler/SortRandomTest.php
+4
-4
core/modules/views/tests/src/Kernel/Handler/SortTest.php
core/modules/views/tests/src/Kernel/Handler/SortTest.php
+4
-4
core/modules/views/tests/src/Kernel/ModuleTest.php
core/modules/views/tests/src/Kernel/ModuleTest.php
+8
-11
core/modules/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
...s/views/tests/src/Kernel/Plugin/ArgumentValidatorTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
...s/views/tests/src/Kernel/Plugin/BlockDependenciesTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/DisplayKernelTest.php
...dules/views/tests/src/Kernel/Plugin/DisplayKernelTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php
...modules/views/tests/src/Kernel/Plugin/DisplayPageTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
core/modules/views/tests/src/Kernel/Plugin/JoinTest.php
+4
-3
core/modules/views/tests/src/Kernel/Plugin/PagerKernelTest.php
...modules/views/tests/src/Kernel/Plugin/PagerKernelTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/PluginKernelTestBase.php
...es/views/tests/src/Kernel/Plugin/PluginKernelTestBase.php
+17
-0
core/modules/views/tests/src/Kernel/Plugin/QueryTest.php
core/modules/views/tests/src/Kernel/Plugin/QueryTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
...iews/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php
+3
-2
core/modules/views/tests/src/Kernel/Plugin/RelationshipTest.php
...odules/views/tests/src/Kernel/Plugin/RelationshipTest.php
+3
-3
core/modules/views/tests/src/Kernel/Plugin/RowEntityTest.php
core/modules/views/tests/src/Kernel/Plugin/RowEntityTest.php
+5
-5
core/modules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
...ules/views/tests/src/Kernel/Plugin/RowRenderCacheTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php
core/modules/views/tests/src/Kernel/Plugin/SqlQueryTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php
...dules/views/tests/src/Kernel/Plugin/StyleHtmlListTest.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/StyleMappingTest.php
...odules/views/tests/src/Kernel/Plugin/StyleMappingTest.php
+3
-2
core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php
...ules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php
+2
-2
core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php
core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php
+4
-4
core/modules/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php
...es/views/tests/src/Kernel/Plugin/StyleUnformattedTest.php
+2
-2
core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
.../modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
+5
-5
core/modules/views/tests/src/Kernel/PluginInstanceTest.php
core/modules/views/tests/src/Kernel/PluginInstanceTest.php
+4
-4
core/modules/views/tests/src/Kernel/QueryGroupByTest.php
core/modules/views/tests/src/Kernel/QueryGroupByTest.php
+5
-4
core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php
...les/views/tests/src/Kernel/RenderCacheIntegrationTest.php
+5
-4
core/modules/views/tests/src/Kernel/TokenReplaceTest.php
core/modules/views/tests/src/Kernel/TokenReplaceTest.php
+4
-4
core/modules/views/tests/src/Kernel/ViewExecutableTest.php
core/modules/views/tests/src/Kernel/ViewExecutableTest.php
+16
-11
core/modules/views/tests/src/Kernel/ViewStorageTest.php
core/modules/views/tests/src/Kernel/ViewStorageTest.php
+3
-3
core/modules/views/tests/src/Kernel/ViewsHooksTest.php
core/modules/views/tests/src/Kernel/ViewsHooksTest.php
+5
-4
core/modules/views/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php
...ws/tests/src/Kernel/Wizard/WizardPluginBaseKernelTest.php
+5
-5
core/modules/views_ui/tests/src/Kernel/TagTest.php
core/modules/views_ui/tests/src/Kernel/TagTest.php
+4
-4
core/tests/Drupal/KernelTests/KernelTestBase.php
core/tests/Drupal/KernelTests/KernelTestBase.php
+5
-1
No files found.
core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php
View file @
ee9f19cf
...
...
@@ -49,6 +49,10 @@ public function __sleep() {
* {@inheritdoc}
*/
public
function
__wakeup
()
{
// Tests in isolation potentially unserialize in the parent process.
if
(
isset
(
$GLOBALS
[
'__PHPUNIT_BOOTSTRAP'
])
&&
!
\
Drupal
::
hasContainer
())
{
return
;
}
$container
=
\
Drupal
::
getContainer
();
foreach
(
$this
->
_serviceIds
as
$key
=>
$service_id
)
{
$this
->
$key
=
$container
->
get
(
$service_id
);
...
...
core/modules/aggregator/
src/Tests
/Views/AggregatorFeedViewsFieldAccessTest.php
→
core/modules/aggregator/
tests/src/Kernel
/Views/AggregatorFeedViewsFieldAccessTest.php
View file @
ee9f19cf
...
...
@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\
aggregator\Tests
\Views\AggregatorFeedViewsFieldAccessTest.
* Contains \Drupal\
Tests\aggregator\Kernel
\Views\AggregatorFeedViewsFieldAccessTest.
*/
namespace
Drupal\
aggregator\Tests
\Views
;
namespace
Drupal\
Tests\aggregator\Kernel
\Views
;
use
Drupal\aggregator\Entity\Feed
;
use
Drupal\
views\Tests
\Handler\FieldFieldAccessTestBase
;
use
Drupal\
Tests\views\Kernel
\Handler\FieldFieldAccessTestBase
;
/**
* Tests base field access in Views for the aggregator_feed entity.
...
...
core/modules/aggregator/
src/Tests
/Views/AggregatorItemViewsFieldAccessTest.php
→
core/modules/aggregator/
tests/src/Kernel
/Views/AggregatorItemViewsFieldAccessTest.php
View file @
ee9f19cf
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
aggregator\Tests
\Views\AggregatorItemViewsFieldAccessTest.
* Contains \Drupal\
Tests\aggregator\Kernel
\Views\AggregatorItemViewsFieldAccessTest.
*/
namespace
Drupal\
aggregator\Tests
\Views
;
namespace
Drupal\
Tests\aggregator\Kernel
\Views
;
use
Drupal\aggregator\Entity\Feed
;
use
Drupal\aggregator\Entity\Item
;
use
Drupal\
views\Tests
\Handler\FieldFieldAccessTestBase
;
use
Drupal\
Tests\views\Kernel
\Handler\FieldFieldAccessTestBase
;
/**
* Tests base field access in Views for the aggregator_item entity.
...
...
core/modules/aggregator/
src/Tests
/Views/IntegrationTest.php
→
core/modules/aggregator/
tests/src/Kernel
/Views/IntegrationTest.php
View file @
ee9f19cf
...
...
@@ -2,24 +2,24 @@
/**
* @file
* Contains \Drupal\
aggregator\Tests
\Views\IntegrationTest.
* Contains \Drupal\
Tests\aggregator\Kernel
\Views\IntegrationTest.
*/
namespace
Drupal\
aggregator\Tests
\Views
;
namespace
Drupal\
Tests\aggregator\Kernel
\Views
;
use
Drupal\Component\Utility\Xss
;
use
Drupal\Core\Render\RenderContext
;
use
Drupal\Core\Url
;
use
Drupal\Tests\views\Kernel\ViewsKernelTestBase
;
use
Drupal\views\Views
;
use
Drupal\views\Tests\ViewTestData
;
use
Drupal\views\Tests\ViewKernelTestBase
;
/**
* Tests basic integration of views data from the aggregator module.
*
* @group aggregator
*/
class
IntegrationTest
extends
ViewKernelTestBase
{
class
IntegrationTest
extends
View
s
KernelTestBase
{
/**
* Modules to install.
...
...
@@ -52,7 +52,7 @@ class IntegrationTest extends ViewKernelTestBase {
/**
* {@inheritdoc}
*/
protected
function
setUp
()
{
protected
function
setUp
(
$import_test_views
=
TRUE
)
{
parent
::
setUp
();
$this
->
installEntitySchema
(
'aggregator_item'
);
...
...
@@ -120,7 +120,7 @@ public function testAggregatorItemView() {
$output
=
$renderer
->
executeInRenderContext
(
new
RenderContext
(),
function
()
use
(
$view
,
$row
)
{
return
$view
->
field
[
'title'
]
->
advancedRender
(
$row
);
});
$this
->
assertEqual
(
$output
,
$expected_link
,
'Ensure the right link is generated'
);
$this
->
assertEqual
(
$output
,
$expected_link
->
getGeneratedLink
()
,
'Ensure the right link is generated'
);
$expected_author
=
Xss
::
filter
(
$items
[
$iid
]
->
getAuthor
(),
_aggregator_allowed_tags
());
$output
=
$renderer
->
executeInRenderContext
(
new
RenderContext
(),
function
()
use
(
$view
,
$row
)
{
...
...
core/modules/comment/
src/Tests
/Views/CommentLinksTest.php
→
core/modules/comment/
tests/src/Kernel
/Views/CommentLinksTest.php
View file @
ee9f19cf
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
comment\Tests
\Views\CommentLinksTest.
* Contains \Drupal\
Tests\comment\Kernel
\Views\CommentLinksTest.
*/
namespace
Drupal\
comment\Tests
\Views
;
namespace
Drupal\
Tests\comment\Kernel
\Views
;
use
Drupal\comment\CommentInterface
;
use
Drupal\comment\CommentManagerInterface
;
...
...
@@ -21,7 +21,7 @@
*
* @group comment
*/
class
CommentLinksTest
extends
CommentViewKernelTestBase
{
class
CommentLinksTest
extends
CommentView
s
KernelTestBase
{
/**
* Views used by this test.
...
...
core/modules/comment/
src/Tests
/Views/CommentUserNameTest.php
→
core/modules/comment/
tests/src/Kernel
/Views/CommentUserNameTest.php
View file @
ee9f19cf
...
...
@@ -2,17 +2,17 @@
/**
* @file
* Contains \Drupal\
comment\Tests
\Views\CommentUserNameTest.
* Contains \Drupal\
Tests\comment\Kernel
\Views\CommentUserNameTest.
*/
namespace
Drupal\
comment\Tests
\Views
;
namespace
Drupal\
Tests\comment\Kernel
\Views
;
use
Drupal\comment\Entity\Comment
;
use
Drupal\Core\Session\AnonymousUserSession
;
use
Drupal\Tests\views\Kernel\ViewsKernelTestBase
;
use
Drupal\user\Entity\Role
;
use
Drupal\user\Entity\User
;
use
Drupal\views\Entity\View
;
use
Drupal\views\Tests\ViewKernelTestBase
;
use
Drupal\views\Views
;
/**
...
...
@@ -20,7 +20,7 @@
*
* @group comment
*/
class
CommentUserNameTest
extends
ViewKernelTestBase
{
class
CommentUserNameTest
extends
View
s
KernelTestBase
{
/**
* Admin user.
...
...
core/modules/comment/
src/Tests
/Views/CommentViewsFieldAccessTest.php
→
core/modules/comment/
tests/src/Kernel
/Views/CommentViewsFieldAccessTest.php
View file @
ee9f19cf
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
comment\Tests
\Views\CommentViewsFieldAccessTest.
* Contains \Drupal\
Tests\comment\Kernel
\Views\CommentViewsFieldAccessTest.
*/
namespace
Drupal\
comment\Tests
\Views
;
namespace
Drupal\
Tests\comment\Kernel
\Views
;
use
Drupal\comment\Entity\Comment
;
use
Drupal\user\Entity\User
;
use
Drupal\
views\Tests
\Handler\FieldFieldAccessTestBase
;
use
Drupal\
Tests\views\Kernel
\Handler\FieldFieldAccessTestBase
;
/**
* Tests base field access in Views for the comment entity.
...
...
core/modules/comment/
src/Tests/Views/CommentView
KernelTestBase.php
→
core/modules/comment/
tests/src/Kernel/Views/CommentViews
KernelTestBase.php
View file @
ee9f19cf
...
...
@@ -2,19 +2,19 @@
/**
* @file
* Contains \Drupal\
comment\Tests\Views\CommentView
KernelTestBase.
* Contains \Drupal\
Tests\comment\Kernel\Views\CommentViews
KernelTestBase.
*/
namespace
Drupal\
comment\Tests
\Views
;
namespace
Drupal\
Tests\comment\Kernel
\Views
;
use
Drupal\Tests\views\Kernel\ViewsKernelTestBase
;
use
Drupal\user\Entity\Role
;
use
Drupal\views\Tests\ViewKernelTestBase
;
use
Drupal\views\Tests\ViewTestData
;
/**
* Provides a common test base for comment views tests.
*/
abstract
class
CommentView
KernelTestBase
extends
View
KernelTestBase
{
abstract
class
CommentView
sKernelTestBase
extends
Views
KernelTestBase
{
/**
* Modules to enable.
...
...
core/modules/dblog/
src/Tests
/Views/ViewsIntegrationTest.php
→
core/modules/dblog/
tests/src/Kernel
/Views/ViewsIntegrationTest.php
View file @
ee9f19cf
...
...
@@ -2,25 +2,25 @@
/**
* @file
* Contains \Drupal\
dblog\Tests
\Views\ViewsIntegrationTest.
* Contains \Drupal\
Tests\dblog\Kernel
\Views\ViewsIntegrationTest.
*/
namespace
Drupal\
dblog\Tests
\Views
;
namespace
Drupal\
Tests\dblog\Kernel
\Views
;
use
Drupal\Component\Utility\SafeMarkup
;
use
Drupal\Component\Utility\Xss
;
use
Drupal\Core\Logger\RfcLogLevel
;
use
Drupal\Core\Url
;
use
Drupal\Tests\views\Kernel\ViewsKernelTestBase
;
use
Drupal\views\Views
;
use
Drupal\views\Tests\ViewTestData
;
use
Drupal\views\Tests\ViewKernelTestBase
;
/**
* Tests the views integration of dblog module.
*
* @group dblog
*/
class
ViewsIntegrationTest
extends
ViewKernelTestBase
{
class
ViewsIntegrationTest
extends
View
s
KernelTestBase
{
/**
* Views used by this test.
...
...
@@ -39,7 +39,7 @@ class ViewsIntegrationTest extends ViewKernelTestBase {
/**
* {@inheritdoc}
*/
protected
function
setUp
()
{
protected
function
setUp
(
$import_test_views
=
TRUE
)
{
parent
::
setUp
();
// Rebuild the router, otherwise we can't generate links.
...
...
core/modules/field/
src/Tests
/EntityReference/Views/EntityReferenceRelationshipTest.php
→
core/modules/field/
tests/src/Kernel
/EntityReference/Views/EntityReferenceRelationshipTest.php
View file @
ee9f19cf
...
...
@@ -2,16 +2,16 @@
/**
* @file
* Contains \Drupal\
field\Tests
\EntityReference\Views\EntityReferenceRelationshipTest.
* Contains \Drupal\
Tests\field\Kernel
\EntityReference\Views\EntityReferenceRelationshipTest.
*/
namespace
Drupal\
field\Tests
\EntityReference\Views
;
namespace
Drupal\
Tests\field\Kernel
\EntityReference\Views
;
use
Drupal\field\Tests\EntityReference\EntityReferenceTestTrait
;
use
Drupal\entity_test
\
Entity\EntityTest
;
use
Drupal\entity_test
\
Entity\EntityTestMul
;
use
Drupal\Tests\views\Kernel\ViewsKernelTestBase
;
use
Drupal\views\Tests\ViewTestData
;
use
Drupal\views\Tests\ViewKernelTestBase
;
use
Drupal\views\Views
;
/**
...
...
@@ -21,7 +21,7 @@
*
* @see core_field_views_data()
*/
class
EntityReferenceRelationshipTest
extends
ViewKernelTestBase
{
class
EntityReferenceRelationshipTest
extends
View
s
KernelTestBase
{
use
EntityReferenceTestTrait
;
...
...
@@ -54,7 +54,7 @@ class EntityReferenceRelationshipTest extends ViewKernelTestBase {
/**
* {@inheritdoc}
*/
protected
function
setUp
()
{
protected
function
setUp
(
$import_test_views
=
TRUE
)
{
parent
::
setUp
();
$this
->
installEntitySchema
(
'user'
);
...
...
core/modules/file/
src/Tests
/Views/ExtensionViewsFieldTest.php
→
core/modules/file/
tests/src/Kernel
/Views/ExtensionViewsFieldTest.php
View file @
ee9f19cf
...
...
@@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\
file\Tests
\Views\ExtensionViewsFieldTest.
* Contains \Drupal\
Tests\file\Kernel
\Views\ExtensionViewsFieldTest.
*/
namespace
Drupal\
file\Tests
\Views
;
namespace
Drupal\
Tests\file\Kernel
\Views
;
use
Drupal\Core\Render\RenderContext
;
use
Drupal\file\Entity\File
;
use
Drupal\Tests\views\Kernel\ViewsKernelTestBase
;
use
Drupal\views\Views
;
use
Drupal\views\Tests\ViewKernelTestBase
;
use
Drupal\views\Tests\ViewTestData
;
/**
...
...
@@ -18,7 +18,7 @@
*
* @group file
*/
class
ExtensionViewsFieldTest
extends
ViewKernelTestBase
{
class
ExtensionViewsFieldTest
extends
View
s
KernelTestBase
{
/**
* {@inheritdoc}
...
...
@@ -35,7 +35,7 @@ class ExtensionViewsFieldTest extends ViewKernelTestBase {
/**
* {@inheritdoc}
*/
protected
function
setUp
()
{
protected
function
setUp
(
$import_test_views
=
TRUE
)
{
parent
::
setUp
();
ViewTestData
::
createTestViews
(
get_class
(
$this
),
array
(
'file_test_views'
));
...
...
core/modules/file/
src/Tests
/Views/FileViewsFieldAccessTest.php
→
core/modules/file/
tests/src/Kernel
/Views/FileViewsFieldAccessTest.php
View file @
ee9f19cf
...
...
@@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\
file\Tests
\Views\FileViewsFieldAccessTest.
* Contains \Drupal\
Tests\file\Kernel
\Views\FileViewsFieldAccessTest.
*/
namespace
Drupal\
file\Tests
\Views
;
namespace
Drupal\
Tests\file\Kernel
\Views
;
use
Drupal\file\Entity\File
;
use
Drupal\language\Entity\ConfigurableLanguage
;
use
Drupal\user\Entity\User
;
use
Drupal\
views\Tests
\Handler\FieldFieldAccessTestBase
;
use
Drupal\
Tests\views\Kernel
\Handler\FieldFieldAccessTestBase
;
/**
* Tests base field access in Views for the file entity.
...
...
core/modules/image/
src/Tests
/Views/ImageViewsDataTest.php
→
core/modules/image/
tests/src/Kernel
/Views/ImageViewsDataTest.php
View file @
ee9f19cf
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
image\Tests
\Views\ImageViewsDataTest.
* Contains \Drupal\
Tests\image\Kernel
\Views\ImageViewsDataTest.
*/
namespace
Drupal\
image\Tests
\Views
;
namespace
Drupal\
Tests\image\Kernel
\Views
;
use
Drupal\field\Entity\FieldStorageConfig
;
use
Drupal\field\Entity\FieldConfig
;
use
Drupal\
views\Tests\View
KernelTestBase
;
use
Drupal\
Tests\views\Kernel\Views
KernelTestBase
;
use
Drupal\views\Views
;
/**
...
...
@@ -17,7 +17,7 @@
*
* @group image
*/
class
ImageViewsDataTest
extends
ViewKernelTestBase
{
class
ImageViewsDataTest
extends
View
s
KernelTestBase
{
/**
* Modules to install.
...
...
core/modules/language/
src/Tests
/Views/ArgumentLanguageTest.php
→
core/modules/language/
tests/src/Kernel
/Views/ArgumentLanguageTest.php
View file @
ee9f19cf
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
language\Tests
\Views\ArgumentLanguageTest.
* Contains \Drupal\
Tests\language\Kernel
\Views\ArgumentLanguageTest.
*/
namespace
Drupal\
language\Tests
\Views
;
namespace
Drupal\
Tests\language\Kernel
\Views
;
use
Drupal\views\Views
;
...
...
core/modules/language/
src/Tests
/Views/FieldLanguageTest.php
→
core/modules/language/
tests/src/Kernel
/Views/FieldLanguageTest.php
View file @
ee9f19cf
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
language\Tests
\Views\FieldLanguageTest.
* Contains \Drupal\
Tests\language\Kernel
\Views\FieldLanguageTest.
*/
namespace
Drupal\
language\Tests
\Views
;
namespace
Drupal\
Tests\language\Kernel
\Views
;
use
Drupal\views\Views
;
...
...
core/modules/language/
src/Tests
/Views/FilterLanguageTest.php
→
core/modules/language/
tests/src/Kernel
/Views/FilterLanguageTest.php
View file @
ee9f19cf
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
language\Tests
\Views\FilterLanguageTest.
* Contains \Drupal\
Tests\language\Kernel
\Views\FilterLanguageTest.
*/
namespace
Drupal\
language\Tests
\Views
;
namespace
Drupal\
Tests\language\Kernel
\Views
;
use
Drupal\views\Views
;
...
...
core/modules/language/
src/Tests
/Views/LanguageTestBase.php
→
core/modules/language/
tests/src/Kernel
/Views/LanguageTestBase.php
View file @
ee9f19cf
...
...
@@ -2,18 +2,18 @@
/**
* @file
* Contains \Drupal\
language\Tests
\Views\LanguageTestBase.
* Contains \Drupal\
Tests\language\Kernel
\Views\LanguageTestBase.
*/
namespace
Drupal\
language\Tests
\Views
;
namespace
Drupal\
Tests\language\Kernel
\Views
;
use
Drupal\language\Entity\ConfigurableLanguage
;
use
Drupal\
views\Tests\View
KernelTestBase
;
use
Drupal\
Tests\views\Kernel\Views
KernelTestBase
;
/**
* Defines the base class for all Language handler tests.
*/
abstract
class
LanguageTestBase
extends
ViewKernelTestBase
{
abstract
class
LanguageTestBase
extends
View
s
KernelTestBase
{
/**
* Modules to enable.
...
...
@@ -22,7 +22,7 @@ abstract class LanguageTestBase extends ViewKernelTestBase {
*/
public
static
$modules
=
array
(
'system'
,
'language'
);
protected
function
setUp
()
{
protected
function
setUp
(
$import_test_views
=
TRUE
)
{
parent
::
setUp
();
$this
->
installConfig
(
array
(
'language'
));
...
...
core/modules/node/
src/Tests
/Views/NidArgumentTest.php
→
core/modules/node/
tests/src/Kernel
/Views/NidArgumentTest.php
View file @
ee9f19cf
...
...
@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\
node\Tests
\Views\NidArgumentTest.
* Contains \Drupal\
Tests\node\Kernel
\Views\NidArgumentTest.
*/
namespace
Drupal\
node\Tests
\Views
;
namespace
Drupal\
Tests\node\Kernel
\Views
;
use
Drupal\node\Entity\Node
;
use
Drupal\
views\Tests\View
KernelTestBase
;
use
Drupal\
Tests\views\Kernel\Views
KernelTestBase
;
use
Drupal\views\Tests\ViewTestData
;
use
Drupal\views\Views
;
...
...
@@ -18,7 +18,7 @@
* @group node
* @see \Drupal\node\Plugin\views\argument\Nid
*/
class
NidArgumentTest
extends
ViewKernelTestBase
{
class
NidArgumentTest
extends
View
s
KernelTestBase
{
/**
* {@inheritdoc}
...
...
core/modules/node/
src/Tests
/Views/NodeViewsFieldAccessTest.php
→
core/modules/node/
tests/src/Kernel
/Views/NodeViewsFieldAccessTest.php
View file @
ee9f19cf
...
...
@@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\
node\Tests
\Views\NodeViewsFieldAccessTest.
* Contains \Drupal\
Tests\node\Kernel
\Views\NodeViewsFieldAccessTest.
*/
namespace
Drupal\
node\Tests
\Views
;
namespace
Drupal\
Tests\node\Kernel
\Views
;
use
Drupal\node\Entity\Node
;
use
Drupal\node\Entity\NodeType
;
use
Drupal\user\Entity\User
;
use
Drupal\
views\Tests
\Handler\FieldFieldAccessTestBase
;
use
Drupal\
Tests\views\Kernel
\Handler\FieldFieldAccessTestBase
;
/**
* Tests base field access in Views for the node entity.
...
...
core/modules/node/
src/Tests
/Views/RevisionCreateTimestampTest.php
→
core/modules/node/
tests/src/Kernel
/Views/RevisionCreateTimestampTest.php
View file @
ee9f19cf
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
node\Tests
\Views\RevisionCreateTimestampTest.
* Contains \Drupal\
Tests\node\Kernel
\Views\RevisionCreateTimestampTest.
*/
namespace
Drupal\
node\Tests
\Views
;
namespace
Drupal\
Tests\node\Kernel
\Views
;
use
Drupal\node\Entity\Node
;
use
Drupal\node\Entity\NodeType
;
use
Drupal\
views\Tests\View
KernelTestBase
;
use
Drupal\
Tests\views\Kernel\Views
KernelTestBase
;
use
Drupal\views\Tests\ViewTestData
;
use
Drupal\views\Views
;
...
...
@@ -18,7 +18,7 @@
*
* @group views
*/
class
RevisionCreateTimestampTest
extends
ViewKernelTestBase
{
class
RevisionCreateTimestampTest
extends
View
s
KernelTestBase
{
/**
* {@inheritdoc}
...
...
core/modules/
file/src/Tests
/Views/FileViewsDataTest.php
→
core/modules/
options/tests/src/Kernel
/Views/FileViewsDataTest.php
View file @
ee9f19cf
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
file\Tests
\Views\FileViewsDataTest.
* Contains \Drupal\
Tests\options\Kernel
\Views\FileViewsDataTest.
*/
namespace
Drupal\
file\Tests
\Views
;
namespace
Drupal\
Tests\options\Kernel
\Views
;
use
Drupal\field\Entity\FieldStorageConfig
;
use
Drupal\field\Entity\FieldConfig
;
use
Drupal\
views\Tests\View
KernelTestBase
;
use
Drupal\
Tests\views\Kernel\Views
KernelTestBase
;
use
Drupal\views\Views
;
/**
...
...
@@ -17,7 +17,7 @@
*
* @group file
*/
class
FileViewsDataTest
extends
ViewKernelTestBase
{
class
FileViewsDataTest
extends
View
s
KernelTestBase
{
/**
* Modules to install.
...
...
core/modules/options/
src/Tests
/Views/OptionsListArgumentTest.php
→
core/modules/options/
tests/src/Kernel
/Views/OptionsListArgumentTest.php
View file @
ee9f19cf
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
options\Tests
\Views\OptionsListArgumentTest.
* Contains \Drupal\
Tests\options\Kernel
\Views\OptionsListArgumentTest.
*/
namespace
Drupal\
options\Tests
\Views
;
namespace
Drupal\
Tests\options\Kernel
\Views
;
use
Drupal\views\Views
;
...
...
core/modules/options/
src/Tests
/Views/OptionsListFilterTest.php
→
core/modules/options/
tests/src/Kernel
/Views/OptionsListFilterTest.php
View file @
ee9f19cf
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
options\Tests
\Views\OptionsListFilterTest.
* Contains \Drupal\
Tests\options\Kernel
\Views\OptionsListFilterTest.
*/
namespace
Drupal\
options\Tests
\Views
;
namespace
Drupal\
Tests\options\Kernel
\Views
;
use
Drupal\views\Views
;
...
...
core/modules/options/
src/Tests
/Views/OptionsTestBase.php
→
core/modules/options/
tests/src/Kernel
/Views/OptionsTestBase.php
View file @
ee9f19cf
...
...
@@ -2,22 +2,22 @@
/**
* @file
* Contains \Drupal\
options\Tests
\Views\OptionsTestBase.
* Contains \Drupal\
Tests\options\Kernel
\Views\OptionsTestBase.
*/
namespace
Drupal\
options\Tests
\Views
;
namespace
Drupal\
Tests\options\Kernel
\Views
;