summaryrefslogtreecommitdiffstats
path: root/core/modules/rest
diff options
context:
space:
mode:
authorAlex Pott2018-07-14 21:57:36 (GMT)
committerAlex Pott2018-07-14 21:57:48 (GMT)
commit9a2592f7ed4a72d159dcd498ca708189f1bc9a49 (patch)
treea27ee705e09e3d0b6c83e900a953b152d2e04a49 /core/modules/rest
parent99de45529d255d60f5f105140a2895cdd0a829af (diff)
Issue #2985734 by Lendude: Convert remaining update tests extending WebTestBaseHEAD8.6.x
(cherry picked from commit eb5d499d311b2e463c3877ba1c6963b335c7a1b4)
Diffstat (limited to 'core/modules/rest')
-rw-r--r--core/modules/rest/tests/fixtures/update/rest-export-with-authentication-correction.php2
-rw-r--r--core/modules/rest/tests/src/Functional/Update/RestExportAuthCorrectionUpdateTest.php (renamed from core/modules/rest/src/Tests/Update/RestExportAuthCorrectionUpdateTest.php)8
-rw-r--r--core/modules/rest/tests/src/Kernel/Views/RestExportAuthTest.php2
3 files changed, 6 insertions, 6 deletions
diff --git a/core/modules/rest/tests/fixtures/update/rest-export-with-authentication-correction.php b/core/modules/rest/tests/fixtures/update/rest-export-with-authentication-correction.php
index 6cbd04e..59d93e0 100644
--- a/core/modules/rest/tests/fixtures/update/rest-export-with-authentication-correction.php
+++ b/core/modules/rest/tests/fixtures/update/rest-export-with-authentication-correction.php
@@ -2,7 +2,7 @@
/**
* @file
- * Test fixture for \Drupal\rest\Tests\Update\RestExportAuthCorrectionUpdateTest.
+ * Test fixture for \Drupal\Tests\rest\Functional\Update\RestExportAuthCorrectionUpdateTest.
*/
use Drupal\Core\Database\Database;
diff --git a/core/modules/rest/src/Tests/Update/RestExportAuthCorrectionUpdateTest.php b/core/modules/rest/tests/src/Functional/Update/RestExportAuthCorrectionUpdateTest.php
index baef4e8..161414c 100644
--- a/core/modules/rest/src/Tests/Update/RestExportAuthCorrectionUpdateTest.php
+++ b/core/modules/rest/tests/src/Functional/Update/RestExportAuthCorrectionUpdateTest.php
@@ -1,8 +1,8 @@
<?php
-namespace Drupal\rest\Tests\Update;
+namespace Drupal\Tests\rest\Functional\Update;
-use Drupal\system\Tests\Update\UpdatePathTestBase;
+use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Ensures that update hook is run properly for REST Export config.
@@ -16,8 +16,8 @@ class RestExportAuthCorrectionUpdateTest extends UpdatePathTestBase {
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
- __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
- __DIR__ . '/../../../tests/fixtures/update/rest-export-with-authentication-correction.php',
+ __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
+ __DIR__ . '/../../../fixtures/update/rest-export-with-authentication-correction.php',
];
}
diff --git a/core/modules/rest/tests/src/Kernel/Views/RestExportAuthTest.php b/core/modules/rest/tests/src/Kernel/Views/RestExportAuthTest.php
index 9d32f7f..6570706 100644
--- a/core/modules/rest/tests/src/Kernel/Views/RestExportAuthTest.php
+++ b/core/modules/rest/tests/src/Kernel/Views/RestExportAuthTest.php
@@ -45,7 +45,7 @@ class RestExportAuthTest extends ViewsKernelTestBase {
*
* @see rest_update_8401()
* @see rest_views_presave()
- * @see \Drupal\rest\Tests\Update\RestExportAuthCorrectionUpdateTest
+ * @see \Drupal\Tests\rest\Functional\Update\RestExportAuthCorrectionUpdateTest
*/
public function testAuthCorrection() {
// Get particular view.