@@ 21-29 (lines=9) @@ | ||
18 | $this->shouldHaveType(FlashMessages::class); |
|
19 | } |
|
20 | ||
21 | function it_registers_a_message_with_provided_type( |
|
22 | SessionDriverInterface $sessionDriver |
|
23 | ) |
|
24 | { |
|
25 | $this->set(FlashMessages::TYPE_INFO, 'Test!') |
|
26 | ->shouldBe($this->getWrappedObject()); |
|
27 | $sessionDriver->set('_messages_', [FlashMessages::TYPE_INFO => ['Test!']]) |
|
28 | ->shouldHaveBeenCalled(); |
|
29 | } |
|
30 | ||
31 | function it_registers_an_info_message_when_an_unknown_type_is_given( |
|
32 | SessionDriverInterface $sessionDriver |
|
@@ 31-39 (lines=9) @@ | ||
28 | ->shouldHaveBeenCalled(); |
|
29 | } |
|
30 | ||
31 | function it_registers_an_info_message_when_an_unknown_type_is_given( |
|
32 | SessionDriverInterface $sessionDriver |
|
33 | ) |
|
34 | { |
|
35 | $sessionDriver->set('_messages_', [FlashMessages::TYPE_INFO => ['Test!', 'Test!']]) |
|
36 | ->shouldBeCalled(); |
|
37 | $this->set('other', 'Test!') |
|
38 | ->shouldBe($this->getWrappedObject()); |
|
39 | } |
|
40 | ||
41 | function it_flushes_all_messages_when_they_are_retrieved( |
|
42 | SessionDriverInterface $sessionDriver |