Skip to content
Snippets Groups Projects
Unverified Commit ef781e50 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3533030 by catch, mondrake: Move QuickStart tests to build tests

(cherry picked from commit 7ed859f2)
parent 30d3c709
No related branches found
No related tags found
5 merge requests!12812Issue #3527142 by andypost, catch, longwave, xjm: Update Composer and...,!12811Issue #3527142 by andypost, catch, longwave, xjm: Update Composer and...,!12686Draft: Issue #3535330: Assets paths in CSS no longer rewritten when aggregation is enabled,!12661Issue #3255804 by godotislate, longwave, berdir, alexpott, catch, andypost,...,!12660Issue #3255804 by godotislate, longwave, berdir, alexpott, catch, andypost,...
Pipeline #541665 canceled
...@@ -2,14 +2,18 @@ ...@@ -2,14 +2,18 @@
declare(strict_types=1); declare(strict_types=1);
namespace Drupal\Tests\Core\Command; namespace Drupal\BuildTests\QuickStart;
use Drupal\sqlite\Driver\Database\sqlite\Install\Tasks; use Drupal\sqlite\Driver\Database\sqlite\Install\Tasks;
use Drupal\BuildTests\Framework\BuildTestBase;
use Drupal\Core\Test\TestDatabase; use Drupal\Core\Test\TestDatabase;
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use GuzzleHttp\Cookie\CookieJar; use GuzzleHttp\Cookie\CookieJar;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\PreserveGlobalState;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;
...@@ -18,15 +22,12 @@ ...@@ -18,15 +22,12 @@
* *
* These tests are run in a separate process because they load Drupal code via * These tests are run in a separate process because they load Drupal code via
* an include. * an include.
*
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @requires extension pdo_sqlite
*
* @group Command
* @group #slow
*/ */
class QuickStartTest extends TestCase { #[Group('Command')]
#[PreserveGlobalState(FALSE)]
#[RequiresPhpExtension('pdo_sqlite')]
#[RunTestsInSeparateProcesses]
class QuickStartTest extends BuildTestBase {
/** /**
* The PHP executable path. * The PHP executable path.
......
...@@ -2,14 +2,18 @@ ...@@ -2,14 +2,18 @@
declare(strict_types=1); declare(strict_types=1);
namespace Drupal\Tests\Core\Recipe; namespace Drupal\BuildTests\QuickStart;
use Drupal\sqlite\Driver\Database\sqlite\Install\Tasks; use Drupal\sqlite\Driver\Database\sqlite\Install\Tasks;
use Drupal\BuildTests\Framework\BuildTestBase;
use Drupal\Core\Test\TestDatabase; use Drupal\Core\Test\TestDatabase;
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
use GuzzleHttp\Client; use GuzzleHttp\Client;
use GuzzleHttp\Cookie\CookieJar; use GuzzleHttp\Cookie\CookieJar;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\PreserveGlobalState;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\PhpExecutableFinder;
use Symfony\Component\Process\Process; use Symfony\Component\Process\Process;
...@@ -18,16 +22,13 @@ ...@@ -18,16 +22,13 @@
* *
* These tests are run in a separate process because they load Drupal code via * These tests are run in a separate process because they load Drupal code via
* an include. * an include.
*
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @requires extension pdo_sqlite
*
* @group Command
* @group Recipe
* @group #slow
*/ */
class RecipeQuickStartTest extends TestCase { #[Group('Command')]
#[Group('Recipe')]
#[PreserveGlobalState(FALSE)]
#[RequiresPhpExtension('pdo_sqlite')]
#[RunTestsInSeparateProcesses]
class RecipeQuickStartTest extends BuildTestBase {
/** /**
* The PHP executable path. * The PHP executable path.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment