Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
declare(strict_types=1);

use DrupalFinder\DrupalFinderComposerRuntime;
use DrupalRector\Set\Drupal10SetList;
use DrupalRector\Set\Drupal9SetList;
use DrupalRector\Set\DrupalSetProvider;
use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector;
use Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector;
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
Expand Down Expand Up @@ -93,11 +92,13 @@
privatization: TRUE,
typeDeclarations: TRUE,
)
// Drupal-specific deprecation fixes.
->withSets([
Drupal9SetList::DRUPAL_9,
Drupal10SetList::DRUPAL_10,
])
// Drupal-specific deprecation fixes. The provider binds each set to a
// `drupal/core` version and only the sets the installed core satisfies are
// loaded, so the set tracks core upgrades without changing this
// configuration. Both calls are required: the provider supplies the sets,
// `withComposerBased()` enables the group.
->withSetProviders(DrupalSetProvider::class)
->withComposerBased(drupal: TRUE)
// Additional rules.
->withRules([
DeclareStrictTypesRector::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\sw_base\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseFunctionalTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\sw_base\FunctionalJavascript;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseFunctionalJavascriptTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -15,6 +16,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseKernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Tests for the CounterBlock JavaScript interactions.
*
* @package Drupal\sw_demo\Tests
*/
#[Group('SwDemo')]
#[RunTestsInSeparateProcesses]
class CounterBlockTest extends WebDriverTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use Drupal\KernelTests\KernelTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Tests for the CounterBlock plugin discovery and theme integration.
*
* @package Drupal\sw_demo\Tests
*/
#[Group('SwDemo')]
#[RunTestsInSeparateProcesses]
class CounterBlockTest extends KernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\star_wars\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsFunctionalTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\star_wars\FunctionalJavascript;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsFunctionalJavascriptTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -15,6 +16,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsKernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\sw_base\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseFunctionalTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\sw_base\FunctionalJavascript;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseFunctionalJavascriptTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -15,6 +16,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseKernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Tests for the CounterBlock JavaScript interactions.
*
* @package Drupal\sw_demo\Tests
*/
#[Group('SwDemo')]
#[RunTestsInSeparateProcesses]
class CounterBlockTest extends WebDriverTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use Drupal\KernelTests\KernelTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Tests for the CounterBlock plugin discovery and theme integration.
*
* @package Drupal\sw_demo\Tests
*/
#[Group('SwDemo')]
#[RunTestsInSeparateProcesses]
class CounterBlockTest extends KernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\star_wars\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsFunctionalTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\star_wars\FunctionalJavascript;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsFunctionalJavascriptTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -15,6 +16,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsKernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@@ -45,10 +45,10 @@
@@ -44,10 +44,10 @@

return RectorConfig::configure()
->withPaths([
Expand All @@ -13,7 +13,7 @@
__DIR__ . '/tests',
])
->withSkip([
@@ -73,7 +73,7 @@
@@ -72,7 +72,7 @@
RenameVariableToMatchNewTypeRector::class,
SimplifyEmptyCheckOnEmptyArrayRector::class,
StringClassNameToClassConstantRector::class => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\sw_base\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseFunctionalTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\sw_base\FunctionalJavascript;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseFunctionalJavascriptTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -15,6 +16,7 @@
* @package Drupal\sw_base\Tests
*/
#[Group('SwBase')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends SwBaseKernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Tests for the CounterBlock JavaScript interactions.
*
* @package Drupal\sw_demo\Tests
*/
#[Group('SwDemo')]
#[RunTestsInSeparateProcesses]
class CounterBlockTest extends WebDriverTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

use Drupal\KernelTests\KernelTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Tests for the CounterBlock plugin discovery and theme integration.
*
* @package Drupal\sw_demo\Tests
*/
#[Group('SwDemo')]
#[RunTestsInSeparateProcesses]
class CounterBlockTest extends KernelTestBase {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Drupal\Tests\star_wars\Functional;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
* Class ExampleTest.
Expand All @@ -14,6 +15,7 @@
* @package Drupal\star_wars\Tests
*/
#[Group('StarWars')]
#[RunTestsInSeparateProcesses]
class ExampleTest extends StarWarsFunctionalTestBase {

/**
Expand Down
Loading