/** * @depends testAddInstantSuccessMessage */ public function testAddInstantInfoMessage(\Krucas\Notification\NotificationsBag $bag) { $bag->infoInstant('i m'); $this->assertCount(8, $bag->all()); $this->assertInstanceOf('Krucas\\Notification\\Collection', $bag->all()); $this->assertInstanceOf('Krucas\\Notification\\Message', $bag->get('info')[1]); $this->assertEquals('i m', $bag->get('info')[1]->getMessage()); $this->assertEquals('info', $bag->get('info')[1]->getType()); $this->assertEquals('<div class="alert alert-:type">:message</div>', $bag->get('info')[1]->getFormat()); $this->assertFalse($bag->get('info')[1]->isFlashable()); return $bag; }