Skip to content
Snippets Groups Projects
Commit b614a4e2 authored by Yash Rode's avatar Yash Rode
Browse files

test nits

parent 0c89a4ee
No related branches found
Tags 7.x-1.0-beta3
No related merge requests found
......@@ -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_session->statusCodeEquals(200);
$mink->assertSession()->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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment