Skip to content

Commit

Permalink
Fix with([])
Browse files Browse the repository at this point in the history
  • Loading branch information
mallorydxw committed Aug 19, 2020
1 parent ed60b57 commit ff00fce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-content/themes/theme/spec/theme/wp_head.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit ff00fce

Please sign in to comment.