Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
7ed859f2
Unverified
Commit
7ed859f2
authored
2 weeks ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3533030
by catch, mondrake: Move QuickStart tests to build tests
parent
2a3b0288
No related branches found
No related tags found
No related merge requests found
Pipeline
#541666
passed with warnings
2 weeks ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal
#541670
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/tests/Drupal/BuildTests/QuickStart/QuickStartTest.php
+11
-10
11 additions, 10 deletions
core/tests/Drupal/BuildTests/QuickStart/QuickStartTest.php
core/tests/Drupal/BuildTests/QuickStart/RecipeQuickStartTest.php
+12
-11
12 additions, 11 deletions
...sts/Drupal/BuildTests/QuickStart/RecipeQuickStartTest.php
with
23 additions
and
21 deletions
core/tests/Drupal/Tests/
Core/Command
/QuickStartTest.php
→
core/tests/Drupal/
Build
Tests/
QuickStart
/QuickStartTest.php
+
11
−
10
View file @
7ed859f2
...
...
@@ -2,14 +2,18 @@
declare
(
strict_types
=
1
);
namespace
Drupal\Tests\
Core\Command
;
namespace
Drupal\
Build
Tests\
QuickStart
;
use
Drupal\sqlite\Driver\Database\sqlite\Install\Tasks
;
use
Drupal\BuildTests\Framework\BuildTestBase
;
use
Drupal\Core\Test\TestDatabase
;
use
Drupal\Tests\BrowserTestBase
;
use
GuzzleHttp\Client
;
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\Process
;
...
...
@@ -18,15 +22,12 @@
*
* These tests are run in a separate process because they load Drupal code via
* 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.
...
...
This diff is collapsed.
Click to expand it.
core/tests/Drupal/Tests/
Core/Recipe
/RecipeQuickStartTest.php
→
core/tests/Drupal/
Build
Tests/
QuickStart
/RecipeQuickStartTest.php
+
12
−
11
View file @
7ed859f2
...
...
@@ -2,14 +2,18 @@
declare
(
strict_types
=
1
);
namespace
Drupal\Tests\
Core\Recipe
;
namespace
Drupal\
Build
Tests\
QuickStart
;
use
Drupal\sqlite\Driver\Database\sqlite\Install\Tasks
;
use
Drupal\BuildTests\Framework\BuildTestBase
;
use
Drupal\Core\Test\TestDatabase
;
use
Drupal\Tests\BrowserTestBase
;
use
GuzzleHttp\Client
;
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\Process
;
...
...
@@ -18,16 +22,13 @@
*
* These tests are run in a separate process because they load Drupal code via
* 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.
...
...
This diff is collapsed.
Click to expand it.
Alex Pott
@alexpott
mentioned in commit
ef781e50
·
2 weeks ago
mentioned in commit
ef781e50
mentioned in commit ef781e5024ef232fe4b5db2af8aa056d3ce576c6
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment