diff --git a/core/modules/config/src/Tests/ConfigImportAllTest.php b/core/modules/config/src/Tests/ConfigImportAllTest.php index 7645847..6b5d3ef 100644 --- a/core/modules/config/src/Tests/ConfigImportAllTest.php +++ b/core/modules/config/src/Tests/ConfigImportAllTest.php @@ -119,6 +119,8 @@ public function testInstallUninstall() { $this->assertModuleTablesDoNotExist($module); } + $this->resetAll(); + // Import the configuration thereby re-installing all the modules. $this->drupalPostForm('admin/config/development/configuration', array(), t('Import all')); // Modules have been installed that have services. diff --git a/core/modules/rest/src/Tests/AuthTest.php b/core/modules/rest/src/Tests/AuthTest.php index 1b576c4..c8a8e3b 100644 --- a/core/modules/rest/src/Tests/AuthTest.php +++ b/core/modules/rest/src/Tests/AuthTest.php @@ -51,12 +51,12 @@ public function testRead() { $permissions = $this->entityPermissions($entity_type, 'view'); $permissions[] = 'restful get entity:' . $entity_type; $account = $this->drupalCreateUser($permissions); - - // Read the resource with session cookie authentication. $this->drupalLogin($account); + + // Try to read the resource with session cookie authentication, which is + // not enabled and should not work. $this->httpRequest($entity->urlInfo(), 'GET', NULL, $this->defaultMimeType); - $this->assertResponse('200', 'HTTP response code is 200 for successfully authorized requests.'); - $this->drupalLogout(); + $this->assertResponse('401', 'HTTP response code is 401 when the request is authenticated but not authorized.'); // Ensure that cURL settings/headers aren't carried over to next request. unset($this->curlHandle);