public function testStoreSuccessWithRedirectToList() { $object = new Project(); $object->id = 1; Project::shouldReceive('create')->once()->andReturn($object); $input = array('fr.title' => 'test', 'fr.slug' => 'test', 'category_id' => 1, 'tags' => '', 'exit' => true); $this->call('POST', 'admin/projects', $input); $this->assertRedirectedToRoute('admin.projects.index'); }