Skip to content

Commit 125f887

Browse files
committed
Fix WordPress plugin unit test
1 parent 93c7016 commit 125f887

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/Debug/Framework/WordPress/SettingsTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace bdk\Test\Debug\Framework\WordPress;
44

55
use bdk\Debug;
6+
use bdk\Debug\Framework\WordPress\Settings as WordPressSettings;
67
use bdk\PhpUnitPolyfill\AssertionTrait;
78
use bdk\PubSub\Event;
89
use bdk\Test\Debug\DebugTestFramework;
@@ -25,7 +26,7 @@ public static function setUpBeforeClass(): void
2526
}
2627
\wp_reset_mock();
2728
self::resetDebug();
28-
self::$plugin = new \bdk\Debug\Framework\WordPress\Settings();
29+
self::$plugin = new WordPressSettings();
2930
self::$plugin->setCfg('pluginFile', 'phpDebugConsole/phpdebugconsole.php');
3031
}
3132

@@ -79,7 +80,7 @@ public function testOnBootstrap()
7980
'PHPDebugConsole Settings', // page title
8081
'PHPDebugConsole', // menu title
8182
'manage_options', // capability
82-
self::$plugin::PAGE_SLUG_NAME, // menu slug
83+
WordPressSettings::PAGE_SLUG_NAME, // menu slug
8384
[self::$plugin, 'outputSettingsPage'], // callable
8485
null, // position
8586
],

0 commit comments

Comments
 (0)