/**
  * @depends testAddFlashableSuccessMessageWithCustomFormat
  */
 public function testAddFlashableWarningMessage(\Krucas\Notification\NotificationsBag $bag)
 {
     $bag->getSessionStore()->shouldReceive('flash')->once();
     $bag->warning('second message');
     $this->assertCount(4, $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Collection', $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Message', $bag->get('warning')->first());
     $this->assertEquals('test warning', $bag->get('warning')->first()->getMessage());
     $this->assertEquals('warning', $bag->get('warning')->first()->getType());
     $this->assertEquals(':message...', $bag->get('warning')->first()->getFormat());
     $this->assertFalse($bag->get('warning')->first()->isFlashable());
     return $bag;
 }