Skip to content

Commit aa2a8e7

Browse files
committed
zeroOrMoreTimes
1 parent abded94 commit aa2a8e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Http/Controllers/CP/ResourceControllerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public function can_edit_resource_with_simple_date_field()
322322
'time_enabled' => false,
323323
'time_required' => false,
324324
]));
325-
Blueprint::shouldReceive('getAdditionalNamespaces')->andReturn(collect(['runway' => base_path('resources/blueprints/runway')]))->once();
325+
Blueprint::shouldReceive('getAdditionalNamespaces')->andReturn(collect(['runway' => base_path('resources/blueprints/runway')]))->zeroOrMoreTimes();
326326

327327
$user = User::make()->makeSuper()->save();
328328
$post = Post::factory()->create();
@@ -361,7 +361,7 @@ public function can_edit_resource_with_date_field_with_default_format()
361361
'time_enabled' => false,
362362
'time_required' => false,
363363
]));
364-
Blueprint::shouldReceive('getAdditionalNamespaces')->andReturn(collect(['runway' => base_path('resources/blueprints/runway')]))->once();
364+
Blueprint::shouldReceive('getAdditionalNamespaces')->andReturn(collect(['runway' => base_path('resources/blueprints/runway')]))->zeroOrMoreTimes();
365365

366366
$post = Post::factory()->create();
367367
$user = User::make()->makeSuper()->save();
@@ -400,7 +400,7 @@ public function can_edit_resource_with_date_field_with_custom_format()
400400
'time_enabled' => true,
401401
'time_required' => false,
402402
]));
403-
Blueprint::shouldReceive('getAdditionalNamespaces')->andReturn(collect(['runway' => base_path('resources/blueprints/runway')]))->once();
403+
Blueprint::shouldReceive('getAdditionalNamespaces')->andReturn(collect(['runway' => base_path('resources/blueprints/runway')]))->zeroOrMoreTimes();
404404

405405
$post = Post::factory()->create();
406406
$user = User::make()->makeSuper()->save();

0 commit comments

Comments
 (0)