Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates-3335802
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
automatic_updates-3335802
Commits
b614a4e2
Commit
b614a4e2
authored
2 years ago
by
Yash Rode
Browse files
Options
Downloads
Patches
Plain Diff
test nits
parent
0c89a4ee
No related branches found
Branches containing commit
Tags
7.x-1.0-beta3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Build/CoreUpdateTest.php
+2
-3
2 additions, 3 deletions
tests/src/Build/CoreUpdateTest.php
with
2 additions
and
3 deletions
tests/src/Build/CoreUpdateTest.php
+
2
−
3
View file @
b614a4e2
...
...
@@ -76,12 +76,11 @@ class CoreUpdateTest extends UpdateTestBase {
$this
->
assertReadOnlyFileSystemError
(
"/automatic-updates-test-api?
$query
"
);
$mink
=
$this
->
getMink
();
$assert_session
=
$mink
->
assertSession
();
$session
=
$mink
->
getSession
();
$session
->
reload
();
$assert
_s
ession
->
statusCodeEquals
(
200
);
$
mink
->
assert
S
ession
()
->
statusCodeEquals
(
200
);
$file_contents
=
$session
->
getPage
()
->
getContent
();
$file_contents
=
json_decode
(
$file_contents
,
TRUE
);
$file_contents
=
json_decode
(
$file_contents
,
TRUE
,
512
,
JSON_THROW_ON_ERROR
);
$this
->
assertStringContainsString
(
"const VERSION = '9.8.1';"
,
$file_contents
[
'web/core/lib/Drupal.php'
]);
// Even though the response is what we expect, assert the status code as
// well, to be extra-certain that there was no kind of server-side error.
...
...
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