From ff00fce13390801ed642214ae5da3dd3b2472b16 Mon Sep 17 00:00:00 2001 From: Mallory Adams Date: Wed, 19 Aug 2020 13:50:33 -0400 Subject: [PATCH] Fix with([]) --- wp-content/themes/theme/spec/theme/wp_head.spec.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/theme/spec/theme/wp_head.spec.php b/wp-content/themes/theme/spec/theme/wp_head.spec.php index 1abc16c..f3953e8 100644 --- a/wp-content/themes/theme/spec/theme/wp_head.spec.php +++ b/wp-content/themes/theme/spec/theme/wp_head.spec.php @@ -40,8 +40,9 @@ ['wp_head', 'adjacent_posts_rel_link', 10, 0], ]; + $removeAction = PHPMockery::mock(__NAMESPACE__, 'remove_action'); foreach ($actions as $args) { - PHPMockery::mock(__NAMESPACE__, 'remove_action')->with($args)->times(1); + $removeAction->with(...$args)->times(1); } $this->wpHead->init(); });