[ 'priority' => 10, 'accepted_args' => 1, ], ]; $pagenow = 'profile.php'; $this->clear_hooks( 'admin_enqueue_scripts' ); self::$editProfile->init(); $this->assertHooked( 'admin_enqueue_scripts', 'WP_Auth0_EditProfile', $expect_hooked ); $pagenow = 'user-edit.php'; $this->clear_hooks( 'admin_enqueue_scripts' ); self::$editProfile->init(); $this->assertHooked( 'admin_enqueue_scripts', 'WP_Auth0_EditProfile', $expect_hooked ); } }