From bb1ef11c65d93a4438fd4799fdfa5e9ce81d8fb6 Mon Sep 17 00:00:00 2001 From: "dai.trinh" Date: Wed, 3 Apr 2024 14:47:51 +0700 Subject: [PATCH] 46567 update unit test --- tests/TestClassAdminViewController.php | 2 +- tests/TestClassContentFilterShortCodeRegistrator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestClassAdminViewController.php b/tests/TestClassAdminViewController.php index 942cb7b4a..e923194dd 100644 --- a/tests/TestClassAdminViewController.php +++ b/tests/TestClassAdminViewController.php @@ -173,7 +173,7 @@ public function testEnqueueExtraJs(AdminViewController $pAdminViewController) $adminPage = new AdminPageEstateDetail('admin_page_onoffice-editlistview'); $pWpHook->callbacks = [[['function' => [$adminPage]]]]; $pAdminViewController->enqueueExtraJs("admin_page_onoffice-editlistview"); - $this->assertEquals(['handle-notification-actions', 'admin-js', 'oo-copy-shortcode','onoffice-custom-form-label-js','onoffice-multiselect'], wp_scripts()->queue); + $this->assertEquals(['handle-notification-actions', 'admin-js', 'postbox', 'oo-copy-shortcode','onoffice-custom-form-label-js','onoffice-multiselect'], wp_scripts()->queue); } /** diff --git a/tests/TestClassContentFilterShortCodeRegistrator.php b/tests/TestClassContentFilterShortCodeRegistrator.php index 828563ccf..b3857850f 100644 --- a/tests/TestClassContentFilterShortCodeRegistrator.php +++ b/tests/TestClassContentFilterShortCodeRegistrator.php @@ -59,7 +59,7 @@ public function prepare() $pContentFilterShortCode1 = $this->getMockBuilder(ContentFilterShortCode::class)->getMock(); $pContentFilterShortCode1->method('getTag')->will($this->returnValue('test1')); $pContentFilterShortCode1->expects($this->once()) - ->method('replaceShortCodes')->with([''])->will($this->returnValue('testText1')); + ->method('replaceShortCodes')->with([])->will($this->returnValue('testText1')); $pContentFilterShortCode2 = $this->getMockBuilder(ContentFilterShortCode::class)->getMock(); $pContentFilterShortCode2->method('getTag')->will($this->returnValue('test2')); $pContentFilterShortCode2->expects($this->once())