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
294
Merge Requests
294
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
0db5b138
Commit
0db5b138
authored
Mar 28, 2016
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2686207
by Berdir: Convert simpletest kernel tests in modules A-I to phpunit
parent
48e0852c
Changes
89
Hide whitespace changes
Inline
Side-by-side
Showing
89 changed files
with
334 additions
and
290 deletions
+334
-290
core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php
core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php
+1
-1
core/modules/aggregator/tests/src/Kernel/AggregatorTitleTest.php
...dules/aggregator/tests/src/Kernel/AggregatorTitleTest.php
+14
-12
core/modules/aggregator/tests/src/Kernel/FeedValidationTest.php
...odules/aggregator/tests/src/Kernel/FeedValidationTest.php
+4
-4
core/modules/aggregator/tests/src/Kernel/ItemWithoutFeedTest.php
...dules/aggregator/tests/src/Kernel/ItemWithoutFeedTest.php
+2
-2
core/modules/block/tests/src/Kernel/BlockConfigSchemaTest.php
.../modules/block/tests/src/Kernel/BlockConfigSchemaTest.php
+3
-3
core/modules/block/tests/src/Kernel/BlockInterfaceTest.php
core/modules/block/tests/src/Kernel/BlockInterfaceTest.php
+4
-3
core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php
core/modules/block/tests/src/Kernel/BlockStorageUnitTest.php
+4
-4
core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
core/modules/block/tests/src/Kernel/BlockViewBuilderTest.php
+3
-3
core/modules/book/tests/src/Kernel/BookUninstallTest.php
core/modules/book/tests/src/Kernel/BookUninstallTest.php
+3
-3
core/modules/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php
...s/breakpoint/tests/src/Kernel/BreakpointDiscoveryTest.php
+3
-3
core/modules/ckeditor/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
...or/tests/modules/src/Kernel/CKEditorPluginManagerTest.php
+3
-3
core/modules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
...odules/ckeditor/tests/modules/src/Kernel/CKEditorTest.php
+3
-3
core/modules/comment/tests/src/Kernel/CommentDefaultFormatterCacheTagsTest.php
...tests/src/Kernel/CommentDefaultFormatterCacheTagsTest.php
+5
-4
core/modules/comment/tests/src/Kernel/CommentFieldAccessTest.php
...dules/comment/tests/src/Kernel/CommentFieldAccessTest.php
+5
-4
core/modules/comment/tests/src/Kernel/CommentStringIdEntitiesTest.php
.../comment/tests/src/Kernel/CommentStringIdEntitiesTest.php
+3
-3
core/modules/comment/tests/src/Kernel/CommentValidationTest.php
...odules/comment/tests/src/Kernel/CommentValidationTest.php
+4
-4
core/modules/config/src/Tests/AssertConfigEntityImportTrait.php
...odules/config/src/Tests/AssertConfigEntityImportTrait.php
+1
-1
core/modules/contact/tests/src/Kernel/MessageEntityTest.php
core/modules/contact/tests/src/Kernel/MessageEntityTest.php
+4
-4
core/modules/content_translation/tests/src/Kernel/ContentTranslationConfigImportTest.php
...n/tests/src/Kernel/ContentTranslationConfigImportTest.php
+3
-3
core/modules/content_translation/tests/src/Kernel/ContentTranslationSettingsApiTest.php
...on/tests/src/Kernel/ContentTranslationSettingsApiTest.php
+3
-3
core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
...ation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
+3
-3
core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
...odules/contextual/tests/src/Kernel/ContextualUnitTest.php
+3
-3
core/modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php
...modules/dblog/tests/src/Kernel/DbLogFormInjectionTest.php
+3
-3
core/modules/editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
...editor/tests/src/Kernel/EditorFileReferenceFilterTest.php
+3
-3
core/modules/editor/tests/src/Kernel/EditorFileUsageTest.php
core/modules/editor/tests/src/Kernel/EditorFileUsageTest.php
+4
-4
core/modules/editor/tests/src/Kernel/EditorImageDialogTest.php
...modules/editor/tests/src/Kernel/EditorImageDialogTest.php
+4
-4
core/modules/editor/tests/src/Kernel/EditorManagerTest.php
core/modules/editor/tests/src/Kernel/EditorManagerTest.php
+3
-3
core/modules/field/tests/src/Kernel/Entity/Update/SqlContentEntityStorageSchemaColumnTest.php
...Entity/Update/SqlContentEntityStorageSchemaColumnTest.php
+3
-3
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
...c/Kernel/EntityReference/EntityReferenceFormatterTest.php
+5
-4
core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceSettingsTest.php
...rc/Kernel/EntityReference/EntityReferenceSettingsTest.php
+5
-4
core/modules/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php
...s/field/tests/src/Kernel/FieldDefinitionIntegrityTest.php
+10
-11
core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
core/modules/field_ui/tests/src/Kernel/EntityDisplayTest.php
+3
-3
core/modules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
...dules/field_ui/tests/src/Kernel/EntityFormDisplayTest.php
+3
-3
core/modules/file/tests/src/Kernel/CopyTest.php
core/modules/file/tests/src/Kernel/CopyTest.php
+2
-2
core/modules/file/tests/src/Kernel/DeleteTest.php
core/modules/file/tests/src/Kernel/DeleteTest.php
+2
-2
core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
...modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
+3
-3
core/modules/file/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
...le/tests/src/Kernel/Formatter/FileEntityFormatterTest.php
+3
-3
core/modules/file/tests/src/Kernel/LoadTest.php
core/modules/file/tests/src/Kernel/LoadTest.php
+2
-2
core/modules/file/tests/src/Kernel/MoveTest.php
core/modules/file/tests/src/Kernel/MoveTest.php
+2
-2
core/modules/file/tests/src/Kernel/SaveDataTest.php
core/modules/file/tests/src/Kernel/SaveDataTest.php
+2
-2
core/modules/file/tests/src/Kernel/SaveTest.php
core/modules/file/tests/src/Kernel/SaveTest.php
+2
-2
core/modules/file/tests/src/Kernel/SpaceUsedTest.php
core/modules/file/tests/src/Kernel/SpaceUsedTest.php
+2
-2
core/modules/file/tests/src/Kernel/UsageTest.php
core/modules/file/tests/src/Kernel/UsageTest.php
+2
-2
core/modules/file/tests/src/Kernel/ValidateTest.php
core/modules/file/tests/src/Kernel/ValidateTest.php
+4
-2
core/modules/file/tests/src/Kernel/ValidatorTest.php
core/modules/file/tests/src/Kernel/ValidatorTest.php
+3
-2
core/modules/filter/tests/src/Kernel/FilterCrudTest.php
core/modules/filter/tests/src/Kernel/FilterCrudTest.php
+3
-3
core/modules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
...dules/filter/tests/src/Kernel/FilterDefaultConfigTest.php
+3
-3
core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
core/modules/filter/tests/src/Kernel/FilterSettingsTest.php
+3
-3
core/modules/filter/tests/src/Kernel/FilterUnitTest.php
core/modules/filter/tests/src/Kernel/FilterUnitTest.php
+4
-4
core/modules/filter/tests/src/Kernel/TextFormatElementFormTest.php
...les/filter/tests/src/Kernel/TextFormatElementFormTest.php
+3
-3
core/modules/hal/tests/src/Kernel/DenormalizeTest.php
core/modules/hal/tests/src/Kernel/DenormalizeTest.php
+3
-2
core/modules/hal/tests/src/Kernel/EntityTest.php
core/modules/hal/tests/src/Kernel/EntityTest.php
+3
-2
core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
+3
-2
core/modules/hal/tests/src/Kernel/NormalizeTest.php
core/modules/hal/tests/src/Kernel/NormalizeTest.php
+3
-2
core/modules/hal/tests/src/Kernel/NormalizerTestBase.php
core/modules/hal/tests/src/Kernel/NormalizerTestBase.php
+3
-3
core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php
core/modules/help/tests/src/Kernel/HelpEmptyPageTest.php
+5
-5
core/modules/image/tests/src/Kernel/ImageImportTest.php
core/modules/image/tests/src/Kernel/ImageImportTest.php
+3
-3
core/modules/system/tests/modules/entity_test/entity_test.module
...dules/system/tests/modules/entity_test/entity_test.module
+2
-2
core/tests/Drupal/KernelTests/Core/Config/CacheabilityMetadataConfigOverrideTest.php
...ts/Core/Config/CacheabilityMetadataConfigOverrideTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php
core/tests/Drupal/KernelTests/Core/Config/ConfigCRUDTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
...s/Drupal/KernelTests/Core/Config/ConfigDependencyTest.php
+4
-4
core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php
core/tests/Drupal/KernelTests/Core/Config/ConfigDiffTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
...pal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStaticCacheTest.php
...l/KernelTests/Core/Config/ConfigEntityStaticCacheTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php
...Drupal/KernelTests/Core/Config/ConfigEntityStatusTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStorageTest.php
...rupal/KernelTests/Core/Config/ConfigEntityStorageTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
...s/Drupal/KernelTests/Core/Config/ConfigEntityUnitTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php
...tests/Drupal/KernelTests/Core/Config/ConfigEventsTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigFileContentTest.php
.../Drupal/KernelTests/Core/Config/ConfigFileContentTest.php
+7
-7
core/tests/Drupal/KernelTests/Core/Config/ConfigImportRecreateTest.php
...upal/KernelTests/Core/Config/ConfigImportRecreateTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigImportRenameValidationTest.php
...nelTests/Core/Config/ConfigImportRenameValidationTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php
...nelTests/Core/Config/ConfigImporterMissingContentTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
...sts/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
+5
-4
core/tests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
...ests/Drupal/KernelTests/Core/Config/ConfigInstallTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigLanguageOverrideTest.php
...al/KernelTests/Core/Config/ConfigLanguageOverrideTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigModuleOverridesTest.php
...pal/KernelTests/Core/Config/ConfigModuleOverridesTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigOverrideTest.php
...sts/Drupal/KernelTests/Core/Config/ConfigOverrideTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigOverridesPriorityTest.php
...l/KernelTests/Core/Config/ConfigOverridesPriorityTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
...tests/Drupal/KernelTests/Core/Config/ConfigSchemaTest.php
+4
-4
core/tests/Drupal/KernelTests/Core/Config/ConfigSnapshotTest.php
...sts/Drupal/KernelTests/Core/Config/ConfigSnapshotTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/DefaultConfigTest.php
...ests/Drupal/KernelTests/Core/Config/DefaultConfigTest.php
+6
-7
core/tests/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
...s/Drupal/KernelTests/Core/Config/SchemaCheckTraitTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php
...upal/KernelTests/Core/Config/SchemaConfigListenerTest.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php
...pal/KernelTests/Core/Config/Storage/CachedStorageTest.php
+4
-4
core/tests/Drupal/KernelTests/Core/Config/Storage/ConfigStorageTestBase.php
...KernelTests/Core/Config/Storage/ConfigStorageTestBase.php
+3
-3
core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
...l/KernelTests/Core/Config/Storage/DatabaseStorageTest.php
+2
-2
core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php
...rupal/KernelTests/Core/Config/Storage/FileStorageTest.php
+4
-10
core/tests/Drupal/KernelTests/KernelTestBase.php
core/tests/Drupal/KernelTests/KernelTestBase.php
+36
-0
core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php
...upal/Tests/Core/Config/Entity/ConfigEntityStorageTest.php
+2
-1
No files found.
core/lib/Drupal/Core/Config/Testing/ConfigSchemaChecker.php
View file @
0db5b138
...
...
@@ -24,7 +24,7 @@
* is invalid.
*
* @see \Drupal\simpletest\WebTestBase::setUp()
* @see \Drupal\
simpletest\KernelTestBase::containerBuild
()
* @see \Drupal\
KernelTests\KernelTestBase::register
()
*/
class
ConfigSchemaChecker
implements
EventSubscriberInterface
{
use
SchemaCheckTrait
;
...
...
core/modules/aggregator/
src/Tests
/AggregatorTitleTest.php
→
core/modules/aggregator/
tests/src/Kernel
/AggregatorTitleTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
aggregator\Tests
\AggregatorTitleTest.
* Contains \Drupal\
Tests\aggregator\Kernel
\AggregatorTitleTest.
*/
namespace
Drupal\
aggregator\Tests
;
namespace
Drupal\
Tests\aggregator\Kernel
;
use
Drupal\aggregator\Entity\Feed
;
use
Drupal\aggregator\Entity\Item
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
...
...
@@ -24,7 +24,7 @@ class AggregatorTitleTest extends KernelTestBase {
*
* @var array
*/
public
static
$modules
=
[
'file'
,
'field'
,
'options'
,
'aggregator'
];
public
static
$modules
=
[
'file'
,
'field'
,
'options'
,
'aggregator'
,
'system'
];
/**
* The field name that is tested.
...
...
@@ -43,6 +43,8 @@ protected function setUp() {
$this
->
installEntitySchema
(
'aggregator_feed'
);
$this
->
installEntitySchema
(
'aggregator_item'
);
\
Drupal
::
service
(
'router.builder'
)
->
rebuild
();
$this
->
fieldName
=
'title'
;
}
...
...
@@ -69,25 +71,25 @@ public function testStringFormatter() {
$build
=
$aggregator_feed
->
{
$this
->
fieldName
}
->
view
([
'type'
=>
'aggregator_title'
,
'settings'
=>
[
'display_as_link'
=>
TRUE
]]);
$result
=
$this
->
render
(
$build
);
$this
->
assert
True
(
strpos
(
$result
,
'testing title'
)
);
$this
->
assert
True
(
strpos
(
$result
,
'href="'
.
$aggregator_feed
->
getUrl
())
.
'"'
);
$this
->
assert
Contains
(
'testing title'
,
$result
);
$this
->
assert
Contains
(
'href="'
.
$aggregator_feed
->
getUrl
()
.
'"'
,
$result
);
$build
=
$aggregator_feed
->
{
$this
->
fieldName
}
->
view
([
'type'
=>
'aggregator_title'
,
'settings'
=>
[
'display_as_link'
=>
FALSE
]]);
$result
=
$this
->
render
(
$build
);
$this
->
assert
True
(
strpos
(
$result
,
'testing title'
)
===
0
);
$this
->
assert
True
(
strpos
(
$result
,
$aggregator_feed
->
getUrl
())
===
FALSE
);
$this
->
assert
Contains
(
'testing title'
,
$result
);
$this
->
assert
NotContains
(
$aggregator_feed
->
getUrl
(),
$result
);
// Verify aggregator item title with and without links.
$build
=
$aggregator_item
->
{
$this
->
fieldName
}
->
view
([
'type'
=>
'aggregator_title'
,
'settings'
=>
[
'display_as_link'
=>
TRUE
]]);
$result
=
$this
->
render
(
$build
);
$this
->
assert
True
(
strpos
(
$result
,
'test title'
)
);
$this
->
assert
True
(
strpos
(
$result
,
'href="'
.
$aggregator_item
->
getLink
())
.
'"'
);
$this
->
assert
Contains
(
'test title'
,
$result
);
$this
->
assert
Contains
(
'href="'
.
$aggregator_item
->
getLink
()
.
'"'
,
$result
);
$build
=
$aggregator_item
->
{
$this
->
fieldName
}
->
view
([
'type'
=>
'aggregator_title'
,
'settings'
=>
[
'display_as_link'
=>
FALSE
]]);
$result
=
$this
->
render
(
$build
);
$this
->
assert
True
(
strpos
(
$result
,
'test title'
)
===
0
);
$this
->
assert
True
(
strpos
(
$result
,
$aggregator_item
->
getLink
())
===
FALSE
);
$this
->
assert
Contains
(
'test title'
,
$result
);
$this
->
assert
NotContains
(
$aggregator_item
->
getLink
(),
$result
);
}
}
core/modules/aggregator/
src/Tests
/FeedValidationTest.php
→
core/modules/aggregator/
tests/src/Kernel
/FeedValidationTest.php
View file @
0db5b138
...
...
@@ -2,20 +2,20 @@
/**
* @file
* Contains \Drupal\
aggregator\Tests
\FeedValidationTest.
* Contains \Drupal\
Tests\aggregator\Kernel
\FeedValidationTest.
*/
namespace
Drupal\
aggregator\Tests
;
namespace
Drupal\
Tests\aggregator\Kernel
;
use
Drupal\aggregator\Entity\Feed
;
use
Drupal\
system\Tests\Entity\EntityUnit
TestBase
;
use
Drupal\
KernelTests\Core\Entity\EntityKernel
TestBase
;
/**
* Tests feed validation constraints.
*
* @group aggregator
*/
class
FeedValidationTest
extends
Entity
Unit
TestBase
{
class
FeedValidationTest
extends
Entity
Kernel
TestBase
{
/**
* Modules to install.
...
...
core/modules/aggregator/
src/Tests
/ItemWithoutFeedTest.php
→
core/modules/aggregator/
tests/src/Kernel
/ItemWithoutFeedTest.php
View file @
0db5b138
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\
aggregator\Tests
\ItemWithoutFeedTest.
* Contains \Drupal\
Tests\aggregator\Unit
\ItemWithoutFeedTest.
*/
namespace
Drupal\
aggregator\Tests
;
namespace
Drupal\
Tests\aggregator\Kernel
;
use
Drupal\aggregator\Entity\Item
;
use
Drupal\KernelTests\KernelTestBase
;
...
...
core/modules/block/
src/Tests
/BlockConfigSchemaTest.php
→
core/modules/block/
tests/src/Kernel
/BlockConfigSchemaTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
block\Tests
\BlockConfigSchemaTest.
* Contains \Drupal\
Tests\block\Kernel
\BlockConfigSchemaTest.
*/
namespace
Drupal\
block\Tests
;
namespace
Drupal\
Tests\block\Kernel
;
use
Drupal\block\Entity\Block
;
use
Drupal\config\Tests\SchemaCheckTestTrait
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
* Tests the block config schema.
...
...
core/modules/block/
src/Tests
/BlockInterfaceTest.php
→
core/modules/block/
tests/src/Kernel
/BlockInterfaceTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
block\Tests
\BlockInterfaceTest.
* Contains \Drupal\
Tests\block\Kernel
\BlockInterfaceTest.
*/
namespace
Drupal\
block\Tests
;
namespace
Drupal\
Tests\block\Kernel
;
use
Drupal\Core\Form\FormState
;
use
Drupal\simpletest\KernelTestBase
;
use
Drupal\block\BlockInterface
;
use
Drupal\KernelTests\KernelTestBase
;
/**
* Tests that the block plugin can work properly without a supporting entity.
...
...
@@ -17,6 +17,7 @@
* @group block
*/
class
BlockInterfaceTest
extends
KernelTestBase
{
public
static
$modules
=
array
(
'system'
,
'block'
,
'block_test'
,
'user'
);
/**
...
...
core/modules/block/
src/Tests
/BlockStorageUnitTest.php
→
core/modules/block/
tests/src/Kernel
/BlockStorageUnitTest.php
View file @
0db5b138
...
...
@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\
block\Tests
\BlockStorageUnitTest.
* Contains \Drupal\
Tests\block\Kernel
\BlockStorageUnitTest.
*/
namespace
Drupal\
block\Tests
;
namespace
Drupal\
Tests\block\Kernel
;
use
Drupal\Core\Config\Entity\ConfigEntityStorage
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
use
Drupal\block_test
\
Plugin\Block\TestHtmlBlock
;
use
Drupal\Component\Plugin\Exception\PluginException
;
use
Drupal\block\Entity\Block
;
...
...
@@ -26,7 +26,7 @@ class BlockStorageUnitTest extends KernelTestBase {
*
* @var array
*/
public
static
$modules
=
array
(
'block'
,
'block_test'
);
public
static
$modules
=
array
(
'block'
,
'block_test'
,
'system'
);
/**
* The block storage.
...
...
core/modules/block/
src/Tests
/BlockViewBuilderTest.php
→
core/modules/block/
tests/src/Kernel
/BlockViewBuilderTest.php
View file @
0db5b138
...
...
@@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\
block\Tests
\BlockViewBuilderTest.
* Contains \Drupal\
Tests\block\Kernel
\BlockViewBuilderTest.
*/
namespace
Drupal\
block\Tests
;
namespace
Drupal\
Tests\block\Kernel
;
use
Drupal\Component\Utility\Html
;
use
Drupal\Core\Cache\Cache
;
use
Drupal\Core\Language\LanguageInterface
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
use
Drupal\block\Entity\Block
;
/**
...
...
core/modules/book/
src/Tests
/BookUninstallTest.php
→
core/modules/book/
tests/src/Kernel
/BookUninstallTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
book\Tests
\BookUninstallTest.
* Contains \Drupal\
Tests\book\Kernel
\BookUninstallTest.
*/
namespace
Drupal\
book\Tests
;
namespace
Drupal\
Tests\book\Kernel
;
use
Drupal\node\Entity\Node
;
use
Drupal\node\Entity\NodeType
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
* Tests that the Book module cannot be uninstalled if books exist.
...
...
core/modules/breakpoint/
src/Tests
/BreakpointDiscoveryTest.php
→
core/modules/breakpoint/
tests/src/Kernel
/BreakpointDiscoveryTest.php
View file @
0db5b138
<?php
/**
* @file
* Contains \Drupal\
breakpoint\Tests
\BreakpointDiscoveryTest.
* Contains \Drupal\
Tests\breakpoint\Kernel
\BreakpointDiscoveryTest.
*/
namespace
Drupal\
breakpoint\Tests
;
namespace
Drupal\
Tests\breakpoint\Kernel
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
* Tests discovery of breakpoints provided by themes and modules.
...
...
core/modules/ckeditor/
src/Tests
/CKEditorPluginManagerTest.php
→
core/modules/ckeditor/
tests/modules/src/Kernel
/CKEditorPluginManagerTest.php
View file @
0db5b138
...
...
@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\
ckeditor\Tests
\CKEditorPluginManagerTest.
* Contains \Drupal\
Tests\ckeditor\Kernel
\CKEditorPluginManagerTest.
*/
namespace
Drupal\
ckeditor\Tests
;
namespace
Drupal\
Tests\ckeditor\Kernel
;
use
Drupal\editor\Entity\Editor
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
use
Drupal\filter\Entity\FilterFormat
;
/**
...
...
core/modules/ckeditor/
src/Tests
/CKEditorTest.php
→
core/modules/ckeditor/
tests/modules/src/Kernel
/CKEditorTest.php
View file @
0db5b138
...
...
@@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\
ckeditor\Tests
\CKEditorTest.
* Contains \Drupal\
Tests\ckeditor\Kernel
\CKEditorTest.
*/
namespace
Drupal\
ckeditor\Tests
;
namespace
Drupal\
Tests\ckeditor\Kernel
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
use
Drupal\language\Entity\ConfigurableLanguage
;
use
Drupal\editor\Entity\Editor
;
use
Drupal\filter\Entity\FilterFormat
;
...
...
core/modules/comment/
src/Tests
/CommentDefaultFormatterCacheTagsTest.php
→
core/modules/comment/
tests/src/Kernel
/CommentDefaultFormatterCacheTagsTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,15 @@
/**
* @file
* Contains \Drupal\
comment\Tests
\CommentDefaultFormatterCacheTagsTest.
* Contains \Drupal\
Tests\comment\Kernel
\CommentDefaultFormatterCacheTagsTest.
*/
namespace
Drupal\
comment\Tests
;
namespace
Drupal\
Tests\comment\Kernel
;
use
Drupal\comment\Tests\CommentTestTrait
;
use
Drupal\Core\Cache\Cache
;
use
Drupal\comment\CommentInterface
;
use
Drupal\
system\Tests\Entity\EntityUnit
TestBase
;
use
Drupal\
KernelTests\Core\Entity\EntityKernel
TestBase
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Session\Session
;
use
Drupal\comment\Entity\Comment
;
...
...
@@ -21,7 +22,7 @@
*
* @group comment
*/
class
CommentDefaultFormatterCacheTagsTest
extends
Entity
Unit
TestBase
{
class
CommentDefaultFormatterCacheTagsTest
extends
Entity
Kernel
TestBase
{
use
CommentTestTrait
;
...
...
core/modules/comment/
src/Tests
/CommentFieldAccessTest.php
→
core/modules/comment/
tests/src/Kernel
/CommentFieldAccessTest.php
View file @
0db5b138
<?php
/**
* @file
* Contains \Drupal\
comment\Tests
\CommentFieldAccessTest.
* Contains \Drupal\
Tests\comment\Kernel
\CommentFieldAccessTest.
*/
namespace
Drupal\
comment\Tests
;
namespace
Drupal\
Tests\comment\Kernel
;
use
Drupal\comment\Entity\Comment
;
use
Drupal\comment\Entity\CommentType
;
use
Drupal\comment\Tests\CommentTestTrait
;
use
Drupal\Component\Utility\SafeMarkup
;
use
Drupal\Core\Session\AnonymousUserSession
;
use
Drupal\entity_test
\
Entity\EntityTest
;
use
Drupal\field\Entity\FieldConfig
;
use
Drupal\KernelTests\Core\Entity\EntityKernelTestBase
;
use
Drupal\simpletest\TestBase
;
use
Drupal\system\Tests\Entity\EntityUnitTestBase
;
use
Drupal\user\Entity\Role
;
use
Drupal\user\RoleInterface
;
...
...
@@ -23,7 +24,7 @@
* @group comment
* @group Access
*/
class
CommentFieldAccessTest
extends
Entity
Unit
TestBase
{
class
CommentFieldAccessTest
extends
Entity
Kernel
TestBase
{
use
CommentTestTrait
;
...
...
core/modules/comment/
src/Tests
/CommentStringIdEntitiesTest.php
→
core/modules/comment/
tests/src/Kernel
/CommentStringIdEntitiesTest.php
View file @
0db5b138
...
...
@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\
comment\Tests
\CommentStringIdEntitiesTest.
* Contains \Drupal\
Tests\comment\Kernel
\CommentStringIdEntitiesTest.
*/
namespace
Drupal\
comment\Tests
;
namespace
Drupal\
Tests\comment\Kernel
;
use
Drupal\comment\Entity\CommentType
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
use
Drupal\field\Entity\FieldStorageConfig
;
/**
...
...
core/modules/comment/
src/Tests
/CommentValidationTest.php
→
core/modules/comment/
tests/src/Kernel
/CommentValidationTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
comment\Tests
\CommentValidationTest.
* Contains \Drupal\
Tests\comment\Kernel
\CommentValidationTest.
*/
namespace
Drupal\
comment\Tests
;
namespace
Drupal\
Tests\comment\Kernel
;
use
Drupal\comment\CommentInterface
;
use
Drupal\KernelTests\Core\Entity\EntityKernelTestBase
;
use
Drupal\node\Entity\Node
;
use
Drupal\system\Tests\Entity\EntityUnitTestBase
;
use
Drupal\user\Entity\User
;
/**
...
...
@@ -17,7 +17,7 @@
*
* @group comment
*/
class
CommentValidationTest
extends
Entity
Unit
TestBase
{
class
CommentValidationTest
extends
Entity
Kernel
TestBase
{
/**
* Modules to install.
...
...
core/modules/config/src/Tests/AssertConfigEntityImportTrait.php
View file @
0db5b138
...
...
@@ -13,7 +13,7 @@
* Provides test assertions for testing config entity synchronization.
*
* Can be used by test classes that extend \Drupal\simpletest\WebTestBase or
* \Drupal\
simpletest
\KernelTestBase.
* \Drupal\
KernelTests
\KernelTestBase.
*/
trait
AssertConfigEntityImportTrait
{
...
...
core/modules/contact/
src/Tests
/MessageEntityTest.php
→
core/modules/contact/
tests/src/Kernel
/MessageEntityTest.php
View file @
0db5b138
<?php
/**
* @file
* Contains \Drupal\
contact\Tests
\MessageEntityTest.
* Contains \Drupal\
Tests\contact\Kernel
\MessageEntityTest.
*/
namespace
Drupal\
contact\Tests
;
namespace
Drupal\
Tests\contact\Kernel
;
use
Drupal\
system\Tests\Entity\EntityUnit
TestBase
;
use
Drupal\
KernelTests\Core\Entity\EntityKernel
TestBase
;
/**
* Tests the message entity class.
...
...
@@ -14,7 +14,7 @@
* @group contact
* @see \Drupal\contact\Entity\Message
*/
class
MessageEntityTest
extends
Entity
Unit
TestBase
{
class
MessageEntityTest
extends
Entity
Kernel
TestBase
{
/**
* Modules to enable.
...
...
core/modules/content_translation/
src/Tests
/ContentTranslationConfigImportTest.php
→
core/modules/content_translation/
tests/src/Kernel
/ContentTranslationConfigImportTest.php
View file @
0db5b138
...
...
@@ -2,14 +2,14 @@
/**
* @file
* Contains \Drupal\
content_translation\Tests
\ContentTranslationConfigImportTest.
* Contains \Drupal\
Tests\content_translation\Kernel
\ContentTranslationConfigImportTest.
*/
namespace
Drupal\
content_translation\Tests
;
namespace
Drupal\
Tests\content_translation\Kernel
;
use
Drupal\Core\Config\ConfigImporter
;
use
Drupal\Core\Config\StorageComparer
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
* Tests content translation updates performed during config import.
...
...
core/modules/content_translation/
src/Tests
/ContentTranslationSettingsApiTest.php
→
core/modules/content_translation/
tests/src/Kernel
/ContentTranslationSettingsApiTest.php
View file @
0db5b138
...
...
@@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\
content_translation\Tests
\ContentTranslationSettingsApiTest.
* Contains \Drupal\
Tests\content_translation\Kernel
\ContentTranslationSettingsApiTest.
*/
namespace
Drupal\
content_translation\Tests
;
namespace
Drupal\
Tests\content_translation\Kernel
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
* Tests the content translation settings API.
...
...
core/modules/content_translation/
src/Tests
/ContentTranslationSyncUnitTest.php
→
core/modules/content_translation/
tests/src/Kernel
/ContentTranslationSyncUnitTest.php
View file @
0db5b138
...
...
@@ -2,13 +2,13 @@
/**
* @file
* Contains \Drupal\
content_translation\Tests
\ContentTranslationSyncUnitTest.
* Contains \Drupal\
Tests\content_translation\Kernel
\ContentTranslationSyncUnitTest.
*/
namespace
Drupal\
content_translation\Tests
;
namespace
Drupal\
Tests\content_translation\Kernel
;
use
Drupal\simpletest\KernelTestBase
;
use
Drupal\content_translation
\
FieldTranslationSynchronizer
;
use
Drupal\KernelTests\KernelTestBase
;
/**
* Tests the field synchronization logic.
...
...
core/modules/contextual/
src/Tests
/ContextualUnitTest.php
→
core/modules/contextual/
tests/src/Kernel
/ContextualUnitTest.php
View file @
0db5b138
...
...
@@ -2,12 +2,12 @@
/**
* @file
* Contains \Drupal\
contextual\Tests
\ContextualUnitTest.
* Contains \Drupal\
Tests\contextual\Kernel
\ContextualUnitTest.
*/
namespace
Drupal\
contextual\Tests
;
namespace
Drupal\
Tests\contextual\Kernel
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
/**
* Tests all edge cases of converting from #contextual_links to ids and vice
...
...
core/modules/dblog/
src/Tests
/DbLogFormInjectionTest.php
→
core/modules/dblog/
tests/src/Kernel
/DbLogFormInjectionTest.php
View file @
0db5b138
<?php
/**
* @file
* Contains \Drupal\
dblog\Tests
\DbLogFormInjectionTest.
* Contains \Drupal\
Tests\dblog\Kernel
\DbLogFormInjectionTest.
*/
namespace
Drupal\
dblog\Tests
;
namespace
Drupal\
Tests\dblog\Kernel
;
use
Drupal\Core\DependencyInjection\DependencySerializationTrait
;
use
Drupal\Core\Form\FormInterface
;
use
Drupal\Core\Form\FormState
;
use
Drupal\Core\Form\FormStateInterface
;
use
Drupal\
simpletest
\KernelTestBase
;
use
Drupal\
KernelTests
\KernelTestBase
;
use
Drupal\user\Entity\User
;
/**
...
...
core/modules/editor/
src/Tests
/EditorFileReferenceFilterTest.php
→
core/modules/editor/
tests/src/Kernel
/EditorFileReferenceFilterTest.php
View file @
0db5b138
...
...
@@ -2,15 +2,15 @@
/**
* @file
* Contains \Drupal\
editor\Tests
\EditorFileReferenceFilterTest.
* Contains \Drupal\
Tests\editor\Kernel
\EditorFileReferenceFilterTest.
*/
namespace
Drupal\
editor\Tests
;
namespace
Drupal\
Tests\editor\Kernel
;
use
Drupal\Core\Cache\Cache
;
use
Drupal\file\Entity\File
;
use
Drupal\simpletest\KernelTestBase
;
use
Drupal\filter\FilterPluginCollection
;
use
Drupal\KernelTests\KernelTestBase
;
/**
* Tests Editor module's file reference filter.
...
...
core/modules/editor/
src/Tests
/EditorFileUsageTest.php
→
core/modules/editor/
tests/src/Kernel
/EditorFileUsageTest.php
View file @
0db5b138
...
...
@@ -2,16 +2,16 @@
/**
* @file
* Contains \Drupal\
editor\Tests
\EditorFileUsageTest.
* Contains \Drupal\
Tests\editor\Kernel
\EditorFileUsageTest.
*/
namespace
Drupal\
editor\Tests
;
namespace
Drupal\
Tests\editor\Kernel
;
use
Drupal\editor\Entity\Editor
;
use
Drupal\KernelTests\Core\Entity\EntityKernelTestBase
;
use
Drupal\node\Entity\Node
;
use
Drupal\node\Entity\NodeType
;
use
Drupal\file\Entity\File
;
use
Drupal\system\Tests\Entity\EntityUnitTestBase
;
use
Drupal\field\Entity\FieldStorageConfig
;
use
Drupal\Core\Field\FieldStorageDefinitionInterface
;
use
Drupal\filter\Entity\FilterFormat
;
...
...
@@ -21,7 +21,7 @@
*
* @group editor
*/
class
EditorFileUsageTest
extends
Entity
Unit
TestBase
{
class
EditorFileUsageTest
extends
Entity
Kernel
TestBase
{
/**
* Modules to enable.
...
...
core/modules/editor/
src/Tests
/EditorImageDialogTest.php
→
core/modules/editor/
tests/src/Kernel
/EditorImageDialogTest.php
View file @
0db5b138
...
...
@@ -2,24 +2,24 @@
/**
* @file