mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix unit tests for eggs
This commit is contained in:
@@ -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 New Issue
Block a user