Skip to content

Commit

Permalink
Move the expected exception
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Oct 9, 2020
1 parent b9a4fd3 commit 9e83db2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ public function testRegistersTheGlobalsMapListener(): void

public function testFailsToRegisterGlobalsMapListenerIfCategoryIsMissing(): void
{
$this->expectException(InvalidConfigurationException::class);

$contentController = new Definition('App\Fragments\Text');
$contentController->addTag('contao.content_element');

Expand All @@ -243,6 +241,9 @@ public function testFailsToRegisterGlobalsMapListenerIfCategoryIsMissing(): void
(new ResolveClassPass())->process($container);

$pass = new RegisterFragmentsPass(ContentElementReference::TAG_NAME, 'TL_CTE', ContentProxy::class);

$this->expectException(InvalidConfigurationException::class);

$pass->process($container);
}

Expand Down

0 comments on commit 9e83db2

Please sign in to comment.