Unverified Commit 9a2592f7 authored by alexpott's avatar alexpott

Issue #2985734 by Lendude: Convert remaining update tests extending WebTestBase

(cherry picked from commit eb5d499d)
parent 99de4552
......@@ -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;
......
<?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',
];
}
......
......@@ -45,7 +45,7 @@ protected function setUp($import_test_views = TRUE) {
*
* @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.
......
<?php
namespace Drupal\views\Tests\Update;
namespace Drupal\Tests\views\Functional\Update;
use Drupal\system\Tests\Update\UpdatePathTestBase;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Entity\View;
/**
......@@ -19,8 +19,8 @@ class EntityLinkOutputUrlUpdateTest extends UpdatePathTestBase {
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../tests/fixtures/update/entity-link-output-url.php',
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../fixtures/update/entity-link-output-url.php',
];
}
......
<?php
namespace Drupal\views\Tests\Update;
namespace Drupal\Tests\views\Functional\Update;
use Drupal\system\Tests\Update\UpdatePathTestBase;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Views;
/**
......@@ -19,8 +19,8 @@ class EntityViewsMultiValueBaseFieldDataUpdateTest extends UpdatePathTestBase {
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.views-entity-views-data-2846614.php',
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.views-entity-views-data-2846614.php',
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment