@@ -19,28 +19,28 @@ class Classic_Editor_Test extends TestCase {
1919 /**
2020 * Holds the object to create the action link to duplicate.
2121 *
22- * @var Link_Builder
22+ * @var Link_Builder|\Mockery\MockInterface
2323 */
2424 protected $ link_builder ;
2525
2626 /**
2727 * Holds the permissions helper.
2828 *
29- * @var Permissions_Helper
29+ * @var Permissions_Helper|\Mockery\MockInterface
3030 */
3131 protected $ permissions_helper ;
3232
3333 /**
3434 * Holds the asset manager.
3535 *
36- * @var Asset_Manager
36+ * @var Asset_Manager|\Mockery\MockInterface
3737 */
3838 protected $ asset_manager ;
3939
4040 /**
4141 * The instance.
4242 *
43- * @var Classic_Editor
43+ * @var Classic_Editor&\Mockery\MockInterface
4444 */
4545 protected $ instance ;
4646
@@ -93,12 +93,12 @@ public function test_register_hooks() {
9393
9494 $ utils ->expects ( 'get_option ' )
9595 ->with ( 'duplicate_post_show_link_in ' , 'submitbox ' )
96- ->once ()
96+ ->twice ()
9797 ->andReturn ( '1 ' );
9898
9999 $ utils ->expects ( 'get_option ' )
100100 ->with ( 'duplicate_post_show_link ' , 'new_draft ' )
101- ->once ()
101+ ->twice ()
102102 ->andReturn ( '1 ' );
103103
104104 $ utils ->expects ( 'get_option ' )
@@ -154,7 +154,7 @@ public function test_enqueue_classic_editor_scripts() {
154154 }
155155
156156 /**
157- * Tests the successful enqueue_classic_editor_scripts function.
157+ * Tests the successful enqueue_classic_editor_styles function.
158158 *
159159 * @covers \Yoast\WP\Duplicate_Post\UI\Classic_Editor::enqueue_classic_editor_styles
160160 */
@@ -169,7 +169,7 @@ public function test_enqueue_classic_editor_styles() {
169169 ->with ( 123 )
170170 ->andReturn ( $ post );
171171
172- $ this ->permissions_helper ->expects ( 'is_rewrite_and_republish_copy ' )
172+ $ this ->permissions_helper ->expects ( 'should_links_be_displayed ' )
173173 ->with ( $ post )
174174 ->andReturnTrue ();
175175
0 commit comments