Loading core/tests/Drupal/KernelTests/KernelTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ use Drupal\TestTools\Extension\DeprecationBridge\ExpectDeprecationTrait; use Drupal\TestTools\Extension\SchemaInspector; use Drupal\TestTools\TestVarDumper; use PHPUnit\Framework\Attributes\After; use PHPUnit\Framework\Exception; use PHPUnit\Framework\TestCase; use Prophecy\PhpUnit\ProphecyTrait; Loading Loading @@ -697,10 +698,9 @@ protected function tearDown(): void { } /** * @after * * Additional tear down method to close the connection at the end. */ #[After] public function tearDownCloseDatabaseConnection() { // Destroy the database connection, which for example removes the memory // from sqlite in memory. Loading core/tests/Drupal/TestTools/Extension/RequiresComposerTrait.php +2 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Drupal\TestTools\Extension; use PHPUnit\Framework\Attributes\BeforeClass; use Symfony\Component\Process\ExecutableFinder; /** Loading @@ -11,9 +12,7 @@ */ trait RequiresComposerTrait { /** * @beforeClass */ #[BeforeClass] public static function requiresComposer(): void { if (!((new ExecutableFinder())->find('composer'))) { static::markTestSkipped('This test requires the Composer executable to be accessible.'); Loading Loading
core/tests/Drupal/KernelTests/KernelTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ use Drupal\TestTools\Extension\DeprecationBridge\ExpectDeprecationTrait; use Drupal\TestTools\Extension\SchemaInspector; use Drupal\TestTools\TestVarDumper; use PHPUnit\Framework\Attributes\After; use PHPUnit\Framework\Exception; use PHPUnit\Framework\TestCase; use Prophecy\PhpUnit\ProphecyTrait; Loading Loading @@ -697,10 +698,9 @@ protected function tearDown(): void { } /** * @after * * Additional tear down method to close the connection at the end. */ #[After] public function tearDownCloseDatabaseConnection() { // Destroy the database connection, which for example removes the memory // from sqlite in memory. Loading
core/tests/Drupal/TestTools/Extension/RequiresComposerTrait.php +2 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Drupal\TestTools\Extension; use PHPUnit\Framework\Attributes\BeforeClass; use Symfony\Component\Process\ExecutableFinder; /** Loading @@ -11,9 +12,7 @@ */ trait RequiresComposerTrait { /** * @beforeClass */ #[BeforeClass] public static function requiresComposer(): void { if (!((new ExecutableFinder())->find('composer'))) { static::markTestSkipped('This test requires the Composer executable to be accessible.'); Loading