Check if the flash renders to the template, check if the flash messages are empty after rendering.
This commit is contained in:
parent
b9b62c2d5c
commit
01759b241b
@ -130,10 +130,6 @@ class ControllerTest extends TestCase
|
||||
// the flash class is in the body for this test case
|
||||
$this->assertTrue(str_contains($body, "flash"));
|
||||
$this->assertTrue(str_contains($body, "Error message"));
|
||||
|
||||
//$errorMessages = $flash->get('error');
|
||||
//$this->assertNotEmpty($errorMessages);
|
||||
//$this->assertEquals('Error message', $errorMessages[0]);
|
||||
//$this->assertEquals(1, count($errorMessages));
|
||||
$this->assertEmpty($flash->all());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user