| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function testHandleMethod() |
||
| 34 | { |
||
| 35 | $this->laraflash->message()->delay(2)->hops(2); |
||
| 36 | |||
| 37 | foreach ([[2, 2], [1, 2], [0, 2], [0, 1]] as $values) { |
||
| 38 | $this->assertSame($values[0], $this->laraflash->all()->first()->get('delay')); |
||
| 39 | $this->assertSame($values[1], $this->laraflash->all()->first()->get('hops')); |
||
| 40 | |||
| 41 | $this->laraflashPreparer->handle( |
||
| 42 | $this->laraflash, |
||
| 43 | Request::instance() |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->assertSame(0, $this->laraflash->all()->count()); |
||
| 48 | } |
||
| 50 |