Skip to content

Commit 867a489

Browse files
committed
bug #912 Skip test if FWBundle 6.3 or higher is NOT available (weaverryan)
This PR was merged into the 2.x branch. Discussion ---------- Skip test if FWBundle 6.3 or higher is NOT available | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | None | License | MIT If FWBundle 6.2 or lower is installed, then there is no AssetMapper support, so skip the test. Cheers! Commits ------- 5144b71 Skip test if FWBundle 6.3 or higher is NOT available
2 parents 9d6c9cc + 5144b71 commit 867a489

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/StimulusBundle/tests/AssetMapper/StimulusControllerLoaderFunctionalTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace Symfony\UX\StimulusBundle\Tests\AssetMapper;
1111

12+
use Composer\InstalledVersions;
1213
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1314
use Symfony\Component\Filesystem\Filesystem;
1415
use Symfony\UX\StimulusBundle\Tests\fixtures\StimulusTestKernel;
@@ -20,6 +21,10 @@ class StimulusControllerLoaderFunctionalTest extends WebTestCase
2021

2122
public function testFullApplicationLoad()
2223
{
24+
if (InstalledVersions::getVersion('symfony/framework-bundle') < '6.3') {
25+
$this->markTestSkipped('This test requires symfony/framework-bundle 6.3+');
26+
}
27+
2328
$filesystem = new Filesystem();
2429
$filesystem->remove(__DIR__.'/../fixtures/var/cache');
2530

0 commit comments

Comments
 (0)