Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bytehead committed Jan 11, 2022
1 parent 8f8cbc7 commit d1a508f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Doctrine\DBAL\Result;
use Doctrine\DBAL\Statement;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Security\Csrf\CsrfToken;
Expand All @@ -30,8 +29,6 @@

class RootPageDependentSelectListenerTest extends ContaoTestCase
{
private ContainerBuilder $container;

public function testReturnsIfTheRequestIsNotABackendRequest(): void
{
$request = new Request([], [], ['_scope' => 'frontend']);
Expand Down Expand Up @@ -228,8 +225,7 @@ public function testAddWizardToSelectWhenModuleIsSet(): void
->willReturn($token)
;

$this->container = $this->getContainerWithContaoConfiguration('/directory/project');
System::setContainer($this->container);
System::setContainer($this->getContainerWithContaoConfiguration('/directory/project'));

$listener = new RootPageDependentSelectListener(
$this->createMock(Connection::class),
Expand Down

0 comments on commit d1a508f

Please sign in to comment.