public function testStoreSuccessWithRedirectToList() { $object = new Event(); $object->id = 1; Event::shouldReceive('create')->once()->andReturn($object); $input = ['start_date' => '2014-03-10', 'end_date' => '2014-03-10', 'exit' => true]; $this->call('POST', 'admin/events', $input); $this->assertRedirectedToRoute('admin.events.index'); }