/**
  * @depends testAddFlashableInfoMessage
  */
 public function testAddFlashableErrorMessage(\Krucas\Notification\NotificationsBag $bag)
 {
     $bag->getSessionStore()->shouldReceive('flash')->once();
     $bag->error('e m');
     $this->assertCount(6, $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Collection', $bag->all());
     $this->assertInstanceOf('Krucas\\Notification\\Message', $bag->get('error')->first());
     $this->assertEquals('test error', $bag->get('error')->first()->getMessage());
     $this->assertEquals('error', $bag->get('error')->first()->getType());
     $this->assertEquals(':message!', $bag->get('error')->first()->getFormat());
     $this->assertFalse($bag->get('error')->first()->isFlashable());
     return $bag;
 }