X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fupdate%2Ftests%2Fsrc%2FFunctional%2FUpdateCoreTest.php;fp=web%2Fcore%2Fmodules%2Fupdate%2Fsrc%2FTests%2FUpdateCoreTest.php;h=5cd4b1026068653a6fd93feaa723b4c221b494a7;hp=b6287c7c04d4eafc693952a0a5bb06ebb5105e94;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/modules/update/src/Tests/UpdateCoreTest.php b/web/core/modules/update/tests/src/Functional/UpdateCoreTest.php similarity index 98% rename from web/core/modules/update/src/Tests/UpdateCoreTest.php rename to web/core/modules/update/tests/src/Functional/UpdateCoreTest.php index b6287c7c0..5cd4b1026 100644 --- a/web/core/modules/update/src/Tests/UpdateCoreTest.php +++ b/web/core/modules/update/tests/src/Functional/UpdateCoreTest.php @@ -1,8 +1,9 @@ standardTests(); $this->drupalGet('admin/reports/updates'); $this->clickLink(t('Check manually')); + $this->checkForMetaRefresh(); $this->assertNoText(t('Security update required!')); $this->assertRaw(\Drupal::l("8.$minor_version.1" . $extra_version, Url::fromUri("http://example.com/drupal-8-$minor_version-1$extra_version-release")), 'Link to release appears.'); $this->assertRaw(\Drupal::l(t('Download'), Url::fromUri("http://example.com/drupal-8-$minor_version-1$extra_version.tar.gz")), 'Link to download appears.'); @@ -139,6 +143,7 @@ class UpdateCoreTest extends UpdateTestBase { $this->standardTests(); $this->drupalGet('admin/reports/updates'); $this->clickLink(t('Check manually')); + $this->checkForMetaRefresh(); $this->assertNoText(t('Security update required!')); $this->assertRaw(\Drupal::l('9.0.0', Url::fromUri("http://example.com/drupal-9-0-0-release")), 'Link to release appears.'); $this->assertRaw(\Drupal::l(t('Download'), Url::fromUri("http://example.com/drupal-9-0-0.tar.gz")), 'Link to download appears.'); @@ -226,6 +231,7 @@ class UpdateCoreTest extends UpdateTestBase { $this->drupalGet('admin/reports/updates'); $this->clickLink(t('Check manually')); + $this->checkForMetaRefresh(); $this->assertText(t('Checked available update data for one project.')); $this->drupalGet('admin/modules'); $this->assertNoText(t('There are updates available for your version of Drupal.')); @@ -247,6 +253,7 @@ class UpdateCoreTest extends UpdateTestBase { $this->drupalGet('admin/reports/updates'); $this->clickLink(t('Check manually')); + $this->checkForMetaRefresh(); $this->assertText(t('Checked available update data for one project.')); $this->drupalGet('admin/modules'); $this->assertText(t('There are updates available for your version of Drupal.')); @@ -268,6 +275,7 @@ class UpdateCoreTest extends UpdateTestBase { $this->drupalGet('admin/reports/updates'); $this->clickLink(t('Check manually')); + $this->checkForMetaRefresh(); $this->assertText(t('Checked available update data for one project.')); $this->drupalGet('admin/modules'); $this->assertNoText(t('There are updates available for your version of Drupal.'));