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
315
Merge Requests
315
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
9ef92a40
Commit
9ef92a40
authored
Sep 08, 2017
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2905627
by Lendude, dawehner: Part-2: Convert UpdatePathTestBase to BrowserTestBase
parent
df074f63
Changes
47
Hide whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
158 additions
and
155 deletions
+158
-155
core/modules/aggregator/tests/src/Functional/Update/AggregatorUpdateTest.php
...ator/tests/src/Functional/Update/AggregatorUpdateTest.php
+3
-3
core/modules/block/tests/src/Functional/Update/BlockConditionMissingSchemaUpdateTest.php
...nctional/Update/BlockConditionMissingSchemaUpdateTest.php
+4
-4
core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateFilledTest.php
...Functional/Update/BlockContextMappingUpdateFilledTest.php
+2
-2
core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
...s/src/Functional/Update/BlockContextMappingUpdateTest.php
+6
-6
core/modules/block/tests/src/Functional/Update/BlockRemoveDisabledRegionUpdateTest.php
...Functional/Update/BlockRemoveDisabledRegionUpdateTest.php
+4
-4
core/modules/block_content/tests/src/Functional/Update/BlockContentUpdateTest.php
...nt/tests/src/Functional/Update/BlockContentUpdateTest.php
+3
-3
core/modules/comment/tests/src/Functional/Update/CommentAdminViewUpdateTest.php
...ests/src/Functional/Update/CommentAdminViewUpdateTest.php
+3
-3
core/modules/comment/tests/src/Functional/Update/CommentUpdateTest.php
...comment/tests/src/Functional/Update/CommentUpdateTest.php
+3
-3
core/modules/contact/tests/src/Functional/Update/ContactUpdateTest.php
...contact/tests/src/Functional/Update/ContactUpdateTest.php
+3
-3
core/modules/content_translation/tests/src/Functional/Update/ContentTranslationUpdateTest.php
...ts/src/Functional/Update/ContentTranslationUpdateTest.php
+3
-3
core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
...rc/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
+4
-4
core/modules/dblog/tests/src/Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php
...Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php
+3
-3
core/modules/editor/tests/src/Functional/Update/EditorUpdateTest.php
...s/editor/tests/src/Functional/Update/EditorUpdateTest.php
+4
-4
core/modules/field/tests/src/Functional/Update/EmailWidgetSizeSettingUpdateTest.php
...rc/Functional/Update/EmailWidgetSizeSettingUpdateTest.php
+4
-4
core/modules/field/tests/src/Functional/Update/EntityReferenceHandlerSettingUpdateTest.php
...tional/Update/EntityReferenceHandlerSettingUpdateTest.php
+3
-3
core/modules/field/tests/src/Functional/Update/FieldUpdateTest.php
...les/field/tests/src/Functional/Update/FieldUpdateTest.php
+4
-4
core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php
...ate/FileUsageTemporaryDeletionConfigurationUpdateTest.php
+3
-3
core/modules/hal/tests/src/Functional/Update/CreateHalSettingsForLinkDomainUpdateTest.php
...ional/Update/CreateHalSettingsForLinkDomainUpdateTest.php
+1
-1
core/modules/hal/tests/src/Functional/Update/MigrateLinkDomainSettingFromRestToHalUpdateTest.php
...pdate/MigrateLinkDomainSettingFromRestToHalUpdateTest.php
+1
-1
core/modules/image/tests/src/Functional/Update/ImageUpdateTest.php
...les/image/tests/src/Functional/Update/ImageUpdateTest.php
+3
-3
core/modules/language/tests/src/Functional/Update/LanguageSelectWidgetUpdateTest.php
.../src/Functional/Update/LanguageSelectWidgetUpdateTest.php
+3
-3
core/modules/node/tests/src/Functional/Update/NodeUpdateTest.php
...dules/node/tests/src/Functional/Update/NodeUpdateTest.php
+3
-3
core/modules/responsive_image/tests/src/Functional/Update/ResponsiveImageUpdateTest.php
...tests/src/Functional/Update/ResponsiveImageUpdateTest.php
+4
-4
core/modules/rest/tests/src/Functional/Update/EntityResourcePermissionsUpdateTest.php
...Functional/Update/EntityResourcePermissionsUpdateTest.php
+4
-4
core/modules/rest/tests/src/Functional/Update/ResourceGranularityUpdateTest.php
...s/src/Functional/Update/ResourceGranularityUpdateTest.php
+4
-4
core/modules/rest/tests/src/Functional/Update/RestConfigurationEntitiesUpdateTest.php
...Functional/Update/RestConfigurationEntitiesUpdateTest.php
+4
-4
core/modules/rest/tests/src/Functional/Update/RestExportAuthUpdateTest.php
.../tests/src/Functional/Update/RestExportAuthUpdateTest.php
+4
-4
core/modules/syslog/tests/src/Functional/Update/SyslogUpdateTest.php
...s/syslog/tests/src/Functional/Update/SyslogUpdateTest.php
+3
-3
core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateFilledTest.php
...ctional/Entity/Update/LangcodeToAsciiUpdateFilledTest.php
+2
-2
core/modules/system/tests/src/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php
...rc/Functional/Entity/Update/LangcodeToAsciiUpdateTest.php
+3
-3
core/modules/system/tests/src/Functional/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
...al/Entity/Update/MoveRevisionMetadataFieldsUpdateTest.php
+5
-5
core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaConverterTest.php
...ity/Update/SqlContentEntityStorageSchemaConverterTest.php
+4
-4
core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaIndexFilledTest.php
...y/Update/SqlContentEntityStorageSchemaIndexFilledTest.php
+2
-2
core/modules/system/tests/src/Functional/Entity/Update/SqlContentEntityStorageSchemaIndexTest.php
.../Entity/Update/SqlContentEntityStorageSchemaIndexTest.php
+3
-3
core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
...nal/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
+4
-4
core/modules/system/tests/src/Functional/Update/DbUpdatesTrait.php
...les/system/tests/src/Functional/Update/DbUpdatesTrait.php
+1
-0
core/modules/system/tests/src/Functional/Update/EntityUpdateAddRevisionTranslationAffectedTest.php
...Update/EntityUpdateAddRevisionTranslationAffectedTest.php
+4
-3
core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
...l/Update/EntityUpdateToRevisionableAndPublishableTest.php
+5
-4
core/modules/user/tests/src/Functional/Update/UserUpdateEmailToken.php
...user/tests/src/Functional/Update/UserUpdateEmailToken.php
+4
-4
core/modules/user/tests/src/Functional/Update/UserUpdateOrderPermissionsTest.php
.../src/Functional/Update/UserUpdateOrderPermissionsTest.php
+3
-3
core/modules/views/tests/src/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
...c/Functional/Update/ArgumentPlaceholderUpdatePathTest.php
+4
-4
core/modules/views/tests/src/Functional/Update/BooleanFilterValuesUpdateTest.php
...s/src/Functional/Update/BooleanFilterValuesUpdateTest.php
+4
-4
core/modules/views/tests/src/Functional/Update/CacheabilityMetadataUpdateTest.php
.../src/Functional/Update/CacheabilityMetadataUpdateTest.php
+3
-3
core/modules/views/tests/src/Functional/Update/EntityViewsDataUpdateFilledTest.php
...src/Functional/Update/EntityViewsDataUpdateFilledTest.php
+2
-2
core/modules/views/tests/src/Functional/Update/EntityViewsDataUpdateTest.php
...tests/src/Functional/Update/EntityViewsDataUpdateTest.php
+4
-4
core/modules/views/tests/src/Functional/Update/FieldHandlersUpdateTest.php
...s/tests/src/Functional/Update/FieldHandlersUpdateTest.php
+4
-4
core/modules/views/tests/src/Functional/Update/ImageStyleDependencyUpdateTest.php
.../src/Functional/Update/ImageStyleDependencyUpdateTest.php
+4
-4
No files found.
core/modules/aggregator/
src/Tests
/Update/AggregatorUpdateTest.php
→
core/modules/aggregator/
tests/src/Functional
/Update/AggregatorUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
aggregator\Tests
\Update
;
namespace
Drupal\
Tests\aggregator\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that node settings are properly updated during database updates.
...
...
@@ -16,7 +16,7 @@ class AggregatorUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.filled.standard.php.gz'
,
];
}
...
...
core/modules/block/
src/Tests
/Update/BlockConditionMissingSchemaUpdateTest.php
→
core/modules/block/
tests/src/Functional
/Update/BlockConditionMissingSchemaUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
block\Tests
\Update
;
namespace
Drupal\
Tests\block\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests the upgrade path for block with conditions missing context.
...
...
@@ -34,8 +34,8 @@ class BlockConditionMissingSchemaUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
tests/
fixtures/update/drupal-8.block-test-enabled-missing-schema.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/drupal-8.block-test-enabled-missing-schema.php'
,
];
}
...
...
core/modules/block/
src/Tests
/Update/BlockContextMappingUpdateFilledTest.php
→
core/modules/block/
tests/src/Functional
/Update/BlockContextMappingUpdateFilledTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
block\Tests
\Update
;
namespace
Drupal\
Tests\block\Functional
\Update
;
/**
* Runs BlockContextMappingUpdateTest with a dump filled with content.
...
...
@@ -14,7 +14,7 @@ class BlockContextMappingUpdateFilledTest extends BlockContextMappingUpdateTest
*/
protected
function
setDatabaseDumpFiles
()
{
parent
::
setDatabaseDumpFiles
();
$this
->
databaseDumpFiles
[
0
]
=
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz'
;
$this
->
databaseDumpFiles
[
0
]
=
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.filled.standard.php.gz'
;
}
}
core/modules/block/
src/Tests
/Update/BlockContextMappingUpdateTest.php
→
core/modules/block/
tests/src/Functional
/Update/BlockContextMappingUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
block\Tests
\Update
;
namespace
Drupal\
Tests\block\Functional
\Update
;
use
Drupal\block\Entity\Block
;
use
Drupal\FunctionalTests\Update\UpdatePathTestBase
;
use
Drupal\node\Entity\Node
;
use
Drupal\system\Tests\Update\UpdatePathTestBase
;
/**
* Tests the upgrade path for block context mapping renames.
...
...
@@ -25,10 +25,10 @@ class BlockContextMappingUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php'
,
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.language-enabled.php'
,
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.block-test-enabled.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.language-enabled.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.block-test-enabled.php'
,
];
}
...
...
core/modules/block/
src/Tests
/Update/BlockRemoveDisabledRegionUpdateTest.php
→
core/modules/block/
tests/src/Functional
/Update/BlockRemoveDisabledRegionUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
block\Tests
\Update
;
namespace
Drupal\
Tests\block\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests the upgrade path for removal of disabled region.
...
...
@@ -23,8 +23,8 @@ class BlockRemoveDisabledRegionUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.update-test-block-disabled-2513534.php'
,
];
}
...
...
core/modules/block_content/
src/Tests
/BlockContentUpdateTest.php
→
core/modules/block_content/
tests/src/Functional/Update
/BlockContentUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
block_content\Tests
;
namespace
Drupal\
Tests\block_content\Functional\Update
;
use
Drupal\Core\Field\BaseFieldDefinition
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests update functions for the Block Content module.
...
...
@@ -17,7 +17,7 @@ class BlockContentUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
../../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
];
}
...
...
core/modules/comment/
src/Tests
/Update/CommentAdminViewUpdateTest.php
→
core/modules/comment/
tests/src/Functional
/Update/CommentAdminViewUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
comment\Tests
\Update
;
namespace
Drupal\
Tests\comment\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that comment admin view is enabled after update.
...
...
@@ -23,7 +23,7 @@ class CommentAdminViewUpdateTest extends UpdatePathTestBase {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
];
}
...
...
core/modules/comment/
src/Tests
/Update/CommentUpdateTest.php
→
core/modules/comment/
tests/src/Functional
/Update/CommentUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
comment\Tests
\Update
;
namespace
Drupal\
Tests\comment\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that comment settings are properly updated during database updates.
...
...
@@ -16,7 +16,7 @@ class CommentUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8-rc1.filled.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8-rc1.filled.standard.php.gz'
,
];
}
...
...
core/modules/contact/
src/Tests
/Update/ContactUpdateTest.php
→
core/modules/contact/
tests/src/Functional
/Update/ContactUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
contact\Tests
\Update
;
namespace
Drupal\
Tests\contact\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests contact update path.
...
...
@@ -16,7 +16,7 @@ class ContactUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
];
}
...
...
core/modules/content_translation/
src/Tests
/Update/ContentTranslationUpdateTest.php
→
core/modules/content_translation/
tests/src/Functional
/Update/ContentTranslationUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
content_translation\Tests
\Update
;
namespace
Drupal\
Tests\content_translation\Functional
\Update
;
use
Drupal\Core\Language\LanguageInterface
;
use
Drupal\FunctionalTests\Update\UpdatePathTestBase
;
use
Drupal\system\Tests\Entity\EntityDefinitionTestTrait
;
use
Drupal\system\Tests\Update\UpdatePathTestBase
;
/**
* Tests the upgrade path for the Content Translation module.
...
...
@@ -60,7 +60,7 @@ protected function setUp() {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.0.0-rc1-filled.standard.entity_test_update_mul.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.0.0-rc1-filled.standard.entity_test_update_mul.php.gz'
,
];
}
...
...
core/modules/dblog/
src/Tests
/Update/DblogFiltersAndFieldsUpgradeTest.php
→
core/modules/dblog/
tests/src/Functional
/Update/DblogFiltersAndFieldsUpgradeTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
dblog\Tests
\Update
;
namespace
Drupal\
Tests\dblog\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
use
Drupal\views\Views
;
use
Drupal\Core\Serialization\Yaml
;
...
...
@@ -20,8 +20,8 @@ class DblogFiltersAndFieldsUpgradeTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
tests/
fixtures/update/dblog-2851293.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/dblog-2851293.php'
,
];
}
...
...
core/modules/dblog/
src/Tests
/Update/DblogRecentLogsUsingViewsUpdateTest.php
→
core/modules/dblog/
tests/src/Functional
/Update/DblogRecentLogsUsingViewsUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
dblog\Tests
\Update
;
namespace
Drupal\
Tests\dblog\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Ensures that update hook that creates the watchdog view ran sucessfully.
...
...
@@ -16,7 +16,7 @@ class DblogRecentLogsUsingViewsUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
];
}
...
...
core/modules/editor/
src/Tests
/Update/EditorUpdateTest.php
→
core/modules/editor/
tests/src/Functional
/Update/EditorUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
editor\Tests
\Update
;
namespace
Drupal\
Tests\editor\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests Editor module database updates.
...
...
@@ -16,9 +16,9 @@ class EditorUpdateTest extends UpdatePathTestBase {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
// Simulate an un-synchronized environment.
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.editor-editor_update_8001.php'
,
];
}
...
...
core/modules/field/
src/Tests
/Update/EmailWidgetSizeSettingUpdateTest.php
→
core/modules/field/
tests/src/Functional
/Update/EmailWidgetSizeSettingUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
field\Tests
\Update
;
namespace
Drupal\
Tests\field\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests the update for the 'size' setting of the 'email_default' field widget.
...
...
@@ -16,8 +16,8 @@ class EmailWidgetSizeSettingUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
tests/
fixtures/update/drupal-8.email_widget_size_setting-2578741.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/drupal-8.email_widget_size_setting-2578741.php'
,
];
}
...
...
core/modules/field/
src/Tests
/Update/EntityReferenceHandlerSettingUpdateTest.php
→
core/modules/field/
tests/src/Functional
/Update/EntityReferenceHandlerSettingUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
field\Tests
\Update
;
namespace
Drupal\
Tests\field\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests the update for the entity reference 'handler' setting.
...
...
@@ -16,7 +16,7 @@ class EntityReferenceHandlerSettingUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
];
}
...
...
core/modules/field/
src/Tests
/Update/FieldUpdateTest.php
→
core/modules/field/
tests/src/Functional
/Update/FieldUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
field\Tests
\Update
;
namespace
Drupal\
Tests\field\Functional
\Update
;
use
Drupal\Core\Config\Config
;
use
Drupal\field\Entity\FieldConfig
;
use
Drupal\FunctionalTests\Update\UpdatePathTestBase
;
use
Drupal\node\Entity\Node
;
use
Drupal\system\Tests\Update\UpdatePathTestBase
;
/**
* Tests that field settings are properly updated during database updates.
...
...
@@ -34,8 +34,8 @@ protected function setUp() {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
tests/
fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/drupal-8.views_entity_reference_plugins-2429191.php'
,
];
}
...
...
core/modules/file/
src/Tests
/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php
→
core/modules/file/
tests/src/Functional
/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
file\Tests
\Update
;
namespace
Drupal\
Tests\file\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests the upgrade path for setting the file usage deletion configuration.
...
...
@@ -23,7 +23,7 @@ class FileUsageTemporaryDeletionConfigurationUpdateTest extends UpdatePathTestBa
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
];
}
...
...
core/modules/hal/tests/src/Functional/Update/CreateHalSettingsForLinkDomainUpdateTest.php
View file @
9ef92a40
...
...
@@ -2,7 +2,7 @@
namespace
Drupal\Tests\hal\Functional\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that 'hal.settings' is created, to store 'link_domain'.
...
...
core/modules/hal/tests/src/Functional/Update/MigrateLinkDomainSettingFromRestToHalUpdateTest.php
View file @
9ef92a40
...
...
@@ -2,7 +2,7 @@
namespace
Drupal\Tests\hal\Functional\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* 'link_domain' is migrated from 'rest.settings' to 'hal.settings'.
...
...
core/modules/image/
src/Tests
/Update/ImageUpdateTest.php
→
core/modules/image/
tests/src/Functional
/Update/ImageUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
image\Tests
\Update
;
namespace
Drupal\
Tests\image\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests Image update path.
...
...
@@ -16,7 +16,7 @@ class ImageUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz'
,
];
}
...
...
core/modules/language/
src/Tests
/Update/LanguageSelectWidgetUpdateTest.php
→
core/modules/language/
tests/src/Functional
/Update/LanguageSelectWidgetUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
language\Tests
\Update
;
namespace
Drupal\
Tests\language\Functional
\Update
;
use
Drupal\system\Tests\Update\UpdatePathTestBase
;
use
Drupal\Core\Entity\Entity\EntityFormDisplay
;
use
Drupal\FunctionalTests\Update\UpdatePathTestBase
;
/**
* Tests the update path for the language_select widget.
...
...
@@ -17,7 +17,7 @@ class LanguageSelectWidgetUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.filled.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.filled.standard.php.gz'
,
];
}
...
...
core/modules/node/
src/Tests
/Update/NodeUpdateTest.php
→
core/modules/node/
tests/src/Functional
/Update/NodeUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
node\Tests
\Update
;
namespace
Drupal\
Tests\node\Functional
\Update
;
use
Drupal\Core\Entity\Entity\EntityFormDisplay
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that node settings are properly updated during database updates.
...
...
@@ -17,7 +17,7 @@ class NodeUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz'
,
];
}
...
...
core/modules/responsive_image/
src/Tests
/Update/ResponsiveImageUpdateTest.php
→
core/modules/responsive_image/
tests/src/Functional
/Update/ResponsiveImageUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
responsive_image\Tests
\Update
;
namespace
Drupal\
Tests\responsive_image\Functional
\Update
;
use
Drupal\Core\Entity\Entity\EntityViewDisplay
;
use
Drupal\Core\Serialization\Yaml
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests responsive image module updates.
...
...
@@ -18,7 +18,7 @@ class ResponsiveImageUpdateTest extends UpdatePathTestBase {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz'
,
];
}
...
...
@@ -47,7 +47,7 @@ protected function setUp() {
*/
public
function
testPostUpdateDependency
()
{
// Installing the 'wide' responsive image style.
$wide_image_style
=
Yaml
::
decode
(
file_get_contents
(
__DIR__
.
'/../../../../../profiles/standard/config/optional/responsive_image.styles.wide.yml'
));
$wide_image_style
=
Yaml
::
decode
(
file_get_contents
(
__DIR__
.
'/../../../../../
../
profiles/standard/config/optional/responsive_image.styles.wide.yml'
));
$this
->
config
(
'responsive_image.styles.wide'
)
->
setData
(
$wide_image_style
)
->
save
(
TRUE
);
// Change 'field_image' formatter to a responsive image formatter.
...
...
core/modules/rest/
src/Tests
/Update/EntityResourcePermissionsUpdateTest.php
→
core/modules/rest/
tests/src/Functional
/Update/EntityResourcePermissionsUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
rest\Tests
\Update
;
namespace
Drupal\
Tests\rest\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that existing sites continue to use permissions for EntityResource.
...
...
@@ -23,8 +23,8 @@ class EntityResourcePermissionsUpdateTest extends UpdatePathTestBase {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
../rest/tests/
fixtures/update/drupal-8.rest-rest_update_8203.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/drupal-8.rest-rest_update_8203.php'
,
];
}
...
...
core/modules/rest/
src/Tests
/Update/ResourceGranularityUpdateTest.php
→
core/modules/rest/
tests/src/Functional
/Update/ResourceGranularityUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
rest\Tests
\Update
;
namespace
Drupal\
Tests\rest\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests method-granularity REST config is simplified to resource-granularity.
...
...
@@ -24,8 +24,8 @@ class ResourceGranularityUpdateTest extends UpdatePathTestBase {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
../rest/tests/
fixtures/update/drupal-8.rest-rest_post_update_resource_granularity.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/drupal-8.rest-rest_post_update_resource_granularity.php'
,
];
}
...
...
core/modules/rest/
src/Tests
/Update/RestConfigurationEntitiesUpdateTest.php
→
core/modules/rest/
tests/src/Functional
/Update/RestConfigurationEntitiesUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
rest\Tests
\Update
;
namespace
Drupal\
Tests\rest\Functional
\Update
;
use
Drupal\FunctionalTests\Update\UpdatePathTestBase
;
use
Drupal\rest\RestResourceConfigInterface
;
use
Drupal\system\Tests\Update\UpdatePathTestBase
;
/**
* Tests that rest.settings is converted to rest_resource_config entities.
...
...
@@ -26,8 +26,8 @@ class RestConfigurationEntitiesUpdateTest extends UpdatePathTestBase {
*/
public
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
../rest/tests/
fixtures/update/drupal-8.rest-rest_update_8201.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../fixtures/update/drupal-8.rest-rest_update_8201.php'
,
];
}
...
...
core/modules/rest/
src/Tests
/Update/RestExportAuthUpdateTest.php
→
core/modules/rest/
tests/src/Functional
/Update/RestExportAuthUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
rest\Tests
\Update
;
namespace
Drupal\
Tests\rest\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Ensures that update hook is run properly for REST Export config.
...
...
@@ -16,8 +16,8 @@ class RestExportAuthUpdateTest extends UpdatePathTestBase {
*/
protected
function
setDatabaseDumpFiles
()
{
$this
->
databaseDumpFiles
=
[
__DIR__
.
'/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../tests/fixtures/update/rest-export-with-authentication.php'
,
__DIR__
.
'/../../../../
../
system/tests/fixtures/update/drupal-8.bare.standard.php.gz'
,
__DIR__
.
'/../../../
../
tests/fixtures/update/rest-export-with-authentication.php'
,
];
}
...
...
core/modules/syslog/
src/Tests
/Update/SyslogUpdateTest.php
→
core/modules/syslog/
tests/src/Functional
/Update/SyslogUpdateTest.php
View file @
9ef92a40
<?php
namespace
Drupal\
syslog\Tests
\Update
;
namespace
Drupal\
Tests\syslog\Functional
\Update
;
use
Drupal\
system\
Tests\Update\UpdatePathTestBase
;
use
Drupal\
Functional
Tests\Update\UpdatePathTestBase
;
/**
* Tests that syslog settings are properly updated during database updates.
...
...
@@ -16,7 +16,7 @@ class SyslogUpdateTest extends UpdatePathTestBase {
*/