Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Commits
1b263e79
Commit
1b263e79
authored
3 years ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3257446
by phenaproxima: Remove deprecated PHPUnit assertions
parent
963590ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!159
Issue #3257446: Remove deprecated PHPUnit assertions
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Build/UpdateTestBase.php
+9
-6
9 additions, 6 deletions
tests/src/Build/UpdateTestBase.php
tests/src/Kernel/ReadinessValidation/StagedDatabaseUpdateValidatorTest.php
+1
-1
1 addition, 1 deletion
...ReadinessValidation/StagedDatabaseUpdateValidatorTest.php
with
10 additions
and
7 deletions
tests/src/Build/UpdateTestBase.php
+
9
−
6
View file @
1b263e79
...
...
@@ -32,14 +32,17 @@ abstract class UpdateTestBase extends TemplateProjectSiteTestBase {
protected
function
createTestProject
(
string
$template
):
void
{
parent
::
createTestProject
(
$template
);
// BEGIN: DELETE FROM CORE MERGE REQUEST
// Install Automatic Updates into the test project and ensure it wasn't
// symlinked.
$dir
=
'project'
;
$this
->
runComposer
(
'composer config repo.automatic_updates path '
.
__DIR__
.
'/../../..'
,
$dir
);
$this
->
runComposer
(
'composer require --no-update "drupal/automatic_updates:@dev"'
,
$dir
);
$output
=
$this
->
runComposer
(
'COMPOSER_MIRROR_PATH_REPOS=1 composer update --with-all-dependencies'
,
$dir
);
$this
->
assertStringNotContainsString
(
'Symlinking'
,
$output
);
if
(
__NAMESPACE__
===
'Drupal\Tests\automatic_updates\Build'
)
{
$dir
=
'project'
;
$this
->
runComposer
(
'composer config repo.automatic_updates path '
.
__DIR__
.
'/../../..'
,
$dir
);
$this
->
runComposer
(
'composer require --no-update "drupal/automatic_updates:@dev"'
,
$dir
);
$output
=
$this
->
runComposer
(
'COMPOSER_MIRROR_PATH_REPOS=1 composer update --with-all-dependencies'
,
$dir
);
$this
->
assertStringNotContainsString
(
'Symlinking'
,
$output
);
}
// END: DELETE FROM CORE MERGE REQUEST
// Install Drupal. Always allow test modules to be installed in the UI and,
// for easier debugging, always display errors in their dubious glory.
$this
->
installQuickStart
(
'minimal'
);
...
...
This diff is collapsed.
Click to expand it.
tests/src/Kernel/ReadinessValidation/StagedDatabaseUpdateValidatorTest.php
+
1
−
1
View file @
1b263e79
...
...
@@ -164,7 +164,7 @@ class StagedDatabaseUpdateValidatorTest extends AutomaticUpdatesKernelTestBase {
// The file we're creating shouldn't already exist in the staging area
// unless it's a file we actually ship, which is a scenario covered by
// ::testFileChanged().
$this
->
assertFileNotExist
s
(
$file
);
$this
->
assertFile
Does
NotExist
(
$file
);
file_put_contents
(
$file
,
$this
->
randomString
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment