Skip to content

Commit

Permalink
Make tests compatible with later phpunit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Jan 26, 2022
1 parent e912a90 commit 3cd820c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/application/tests/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ class BuilderTest extends WebTestCase
*/
public function testBuilderRegistry()
{
if (Kernel::VERSION_ID < 41000) {
$this->markTestSkipped('This test can be performed from Symfony 4.1');
}

self::bootKernel();

/** @var BuilderRegistryInterface $builderRegistry */
$builderRegistry = self::$container->get(BuilderRegistryInterface::class);
$builderRegistry = self::getContainer()->get(BuilderRegistryInterface::class);

$defaultBuilder = $builderRegistry->getBuilder('default');
$this->assertInstanceOf(Builder::class, $defaultBuilder);
Expand All @@ -52,7 +48,7 @@ public function testBuilderDefault()
self::bootKernel();

/** @var BuilderRegistryInterface $builderRegistry */
$builderRegistry = self::$container->get(BuilderRegistryInterface::class);
$builderRegistry = self::getContainer()->get(BuilderRegistryInterface::class);

$customBuilder = $builderRegistry->getBuilder('custom');
$result = $customBuilder->build();
Expand Down

0 comments on commit 3cd820c

Please sign in to comment.