Skip to content

Commit

Permalink
Fixed multisite tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanta94 committed Dec 5, 2024
1 parent 7630df1 commit e2d8592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/wpunit/Auth/Admin/DisconnectControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function test_it_disconnects_on_multisite_network(): void {
// Mock these were passed via the query string.
$_GET[ Disconnect_Controller::ARG ] = 1;
$_GET[ Disconnect_Controller::CACHE_KEY ] = 'nada';
$_GET[ Disconnect_Controller::SLUG ] = 'a-plugin-slug-that-does-not-exist';
$_GET[ Disconnect_Controller::SLUG ] = $this->slug;
$_GET['_wpnonce'] = wp_create_nonce( Disconnect_Controller::ARG );

// Mock we're an admin inside the NETWORK dashboard.
Expand Down Expand Up @@ -206,7 +206,7 @@ public function test_it_disconnects_on_subfolder_subsite(): void {
// Mock these were passed via the query string.
$_GET[ Disconnect_Controller::ARG ] = 1;
$_GET[ Disconnect_Controller::CACHE_KEY ] = 'nada';
$_GET[ Disconnect_Controller::SLUG ] = 'a-plugin-slug-that-does-not-exist';
$_GET[ Disconnect_Controller::SLUG ] = $this->slug;
$_GET['_wpnonce'] = wp_create_nonce( Disconnect_Controller::ARG );

// Mock we're in the subsite admin.
Expand Down

0 comments on commit e2d8592

Please sign in to comment.