public function testStoreSuccessWithRedirectToList() { $object = new Block(); $object->id = 1; Block::shouldReceive('create')->once()->andReturn($object); $input = ['name' => 'test', 'exit' => true]; $this->call('POST', 'admin/blocks', $input); $this->assertRedirectedToRoute('admin.blocks.index'); }