Check if the flash renders to the template, check if the flash messages are empty after rendering.

This commit is contained in:
Dave Smith-Hayes 2024-11-29 14:54:17 -05:00
parent b9b62c2d5c
commit 01759b241b

View File

@ -130,10 +130,6 @@ class ControllerTest extends TestCase
// the flash class is in the body for this test case // the flash class is in the body for this test case
$this->assertTrue(str_contains($body, "flash")); $this->assertTrue(str_contains($body, "flash"));
$this->assertTrue(str_contains($body, "Error message")); $this->assertTrue(str_contains($body, "Error message"));
$this->assertEmpty($flash->all());
//$errorMessages = $flash->get('error');
//$this->assertNotEmpty($errorMessages);
//$this->assertEquals('Error message', $errorMessages[0]);
//$this->assertEquals(1, count($errorMessages));
} }
} }