File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Http/Controllers/CP Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments