diff --git a/core/modules/rest/lib/Drupal/rest/Tests/RESTTestBase.php b/core/modules/rest/lib/Drupal/rest/Tests/RESTTestBase.php index f1817d7..b49bf5c 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/RESTTestBase.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/RESTTestBase.php @@ -7,6 +7,7 @@ namespace Drupal\rest\Tests; +use Drupal\Core\Session\AccountInterface; use Drupal\simpletest\WebTestBase; /** @@ -237,7 +238,7 @@ protected function assertHeader($header, $value, $message = '', $group = 'Browse /** * Overrides WebTestBase::drupalLogin(). */ - protected function drupalLogin($user) { + protected function drupalLogin(AccountInterface $user) { if (isset($this->curlHandle)) { // cURL quirk: when setting CURLOPT_CUSTOMREQUEST to anything other than // POST in httpRequest() it has to be restored to POST here. Otherwise the