Commit f4c6a219 authored by alexpott's avatar alexpott

Issue #2805757 by Mile23: InstallerRedirectTraitTest causes fatal when run from PHPUnit

parent c9c12c59
namespace Drupal\Tests\Core\Installer;
namespace Drupal\KernelTests\Core\Installer;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\Database;
......@@ -8,19 +8,15 @@
use Drupal\Core\Database\DatabaseNotFoundException;
use Drupal\Core\Database\Schema;
use Drupal\Core\Installer\InstallerRedirectTrait;
use Drupal\Tests\UnitTestCase;
use Drupal\KernelTests\KernelTestBase;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
// The function drupal_installation_attempted() has to be included.
$root = dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))));
require_once $root . '/core/includes/';
* @coversDefaultClass \Drupal\Core\Installer\InstallerRedirectTrait
* @group Installer
class InstallerRedirectTraitTest extends UnitTestCase {
class InstallerRedirectTraitTest extends KernelTestBase {
* Data provider for testShouldRedirectToInstaller().
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