Skip to content

Commit

Permalink
Update class-admin-Test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Aug 29, 2020
1 parent ce0fdd7 commit 540aa6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/admin/class-admin-Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ public function test_enqueue_styles_on_settings_page() {

$_GET['page'] = $this->plugin_name;

\WP_Mock::userFunction(
'wp_unslash',
array(
'return' => $this->plugin_name,
)
);

// Return any old url.
\WP_Mock::userFunction(
'plugin_dir_url',
Expand Down

0 comments on commit 540aa6e

Please sign in to comment.