Fix unit tests for eggs
This commit is contained in:
parent
0f4f2235a3
commit
0c2bd416ee
14 changed files with 130 additions and 200 deletions
|
@ -28,9 +28,9 @@ class AllocationDeletionServiceTest extends TestCase
|
|||
*/
|
||||
public function testAllocationIsDeleted()
|
||||
{
|
||||
$model = factory(Allocation::class)->make();
|
||||
$model = factory(Allocation::class)->make(['id' => 123]);
|
||||
|
||||
$this->repository->shouldReceive('delete')->with($model->id)->once()->andReturn(1);
|
||||
$this->repository->expects('delete')->with($model->id)->andReturns(1);
|
||||
|
||||
$response = $this->getService()->handle($model);
|
||||
$this->assertEquals(1, $response);
|
||||
|
|
Reference in a new issue