Skip to content

Commit 482cfc1

Browse files
committed
test for error page
1 parent c1a67a2 commit 482cfc1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Functional/StaticPageTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,14 @@ public function testJson()
6666
);
6767
$this->assertContains('"title":"The Team",', $response->getContent());
6868
}
69+
70+
public function testErrorPage()
71+
{
72+
$client = $this->createClient();
73+
$client->request('GET', '/en/company/tea');
74+
$this->assertStatusCode(404, $client);
75+
76+
$response = $client->getResponse();
77+
$this->assertContains('Oops! An Error Occurred', $response->getContent());
78+
}
6979
}

0 commit comments

Comments
 (0)