/** * @depends testAddFlashableWarningMessage */ public function testAddFlashableInfoMessage(\Krucas\Notification\NotificationsBag $bag) { $bag->getSessionStore()->shouldReceive('flash')->once(); $bag->info('info m'); $this->assertCount(5, $bag->all()); $this->assertInstanceOf('Krucas\\Notification\\Collection', $bag->all()); $this->assertInstanceOf('Krucas\\Notification\\Message', $bag->get('info')->first()); $this->assertEquals('info m', $bag->get('info')->first()->getMessage()); $this->assertEquals('info', $bag->get('info')->first()->getType()); $this->assertEquals('<div class="alert alert-:type">:message</div>', $bag->get('info')->first()->getFormat()); $this->assertTrue($bag->get('info')->first()->isFlashable()); return $bag; }