Fix tests: Update Admin class to match test expectations and use correct WP_Mock assertions
This commit is contained in:
1 parent
aa136c7a4a
commit
c7435f5a49
2 files changed
+25
-3
No files matched your search
@@ -57,7 +57,7 @@ class AdminTest extends \WP_Mock\Tools\TestCase {
|
||||
public function test_constructor() {
|
||||
// Verify that the constructor initializes hooks
|
||||
$this->assertInstanceOf(Admin::class, $this->admin);
|
||||
$this->assertTrue(WP_Mock::onActionAdded('admin_enqueue_scripts'));
|
||||
WP_Mock::assertActionAdded('admin_enqueue_scripts', [$this->admin, 'enqueue_admin_assets']);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user