Skip to content
Snippets Groups Projects

Issue #3258056: Simplify Stage::dispatch exception handling

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -190,8 +190,8 @@ class UpdaterFormTest extends AutomaticUpdatesFunctionalTestBase {
$assert_session->pageTextContainsOnce('An error has occurred.');
$page->clickLink('the error page');
// We should see the exception message, but not the validation result's
// messages or summary, because all exceptions thrown directly by event
// subscribers are wrapped in simple runtime exceptions and re-thrown.
// messages or summary, because exceptions thrown directly by event
// subscribers are wrapped in simple exceptions and re-thrown.
$assert_session->pageTextContainsOnce($error->getMessage());
$assert_session->pageTextNotContains((string) $expected_results[0]->getMessages()[0]);
$assert_session->pageTextNotContains($expected_results[0]->getSummary());
Loading