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