/** * Tests the success() method. * * @covers Braincrafted\Bundle\BootstrapBundle\Session\FlashMessage::__construct() * @covers Braincrafted\Bundle\BootstrapBundle\Session\FlashMessage::success() */ public function testSuccess() { $this->flashBag->shouldReceive('add')->with('success', 'Foobar Success')->once(); $this->flash->success('Foobar Success'); }