X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FUpdate%2FUpdatePathTestBase.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FUpdate%2FUpdatePathTestBase.php;h=05719fb6d4bafc49567a344d28030e8255399945;hp=f7f88c64860ef07c9b3e4bc2e515daff141c0400;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/system/src/Tests/Update/UpdatePathTestBase.php b/web/core/modules/system/src/Tests/Update/UpdatePathTestBase.php index f7f88c648..05719fb6d 100644 --- a/web/core/modules/system/src/Tests/Update/UpdatePathTestBase.php +++ b/web/core/modules/system/src/Tests/Update/UpdatePathTestBase.php @@ -2,6 +2,8 @@ namespace Drupal\system\Tests\Update; +@trigger_error(__NAMESPACE__ . '\UpdatePathTestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Use \Drupal\FunctionalTests\Update\UpdatePathTestBase instead. See https://www.drupal.org/node/2896640.', E_USER_DEPRECATED); + use Drupal\Component\Utility\Crypt; use Drupal\Tests\SchemaCheckTestTrait; use Drupal\Core\Database\Database; @@ -34,6 +36,10 @@ use Symfony\Component\HttpFoundation\Request; * * @ingroup update_api * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. + * Use \Drupal\FunctionalTests\Update\UpdatePathTestBase. + * @see https://www.drupal.org/node/2896640 + * * @see hook_update_N() */ abstract class UpdatePathTestBase extends WebTestBase { @@ -237,10 +243,14 @@ abstract class UpdatePathTestBase extends WebTestBase { } // The site might be broken at the time so logging in using the UI might // not work, so we use the API itself. - drupal_rewrite_settings(['settings' => ['update_free_access' => (object) [ - 'value' => TRUE, - 'required' => TRUE, - ]]]); + drupal_rewrite_settings([ + 'settings' => [ + 'update_free_access' => (object) [ + 'value' => TRUE, + 'required' => TRUE, + ], + ], + ]); $this->drupalGet($this->updateUrl); $this->clickLink(t('Continue'));