From 4c1aa88274083bb27d71b5dc9de4b59a9d785fe7 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Tue, 5 Jan 2021 18:22:22 -0500 Subject: [PATCH] Installer connector test cleaned up. --- .../connectors/test-class-connector-installer.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/tests/connectors/test-class-connector-installer.php b/tests/tests/connectors/test-class-connector-installer.php index ef067876..76157842 100644 --- a/tests/tests/connectors/test-class-connector-installer.php +++ b/tests/tests/connectors/test-class-connector-installer.php @@ -72,7 +72,7 @@ public function test_callback_upgrader_process_complete() { // Simulate installing plugin and updating theme to trigger callback. // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback_upgrader_process_complete' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_upgrader_process_complete' ) ); } public function test_callback_activate_plugin() { @@ -102,7 +102,7 @@ public function test_callback_activate_plugin() { \activate_plugin( 'hello.php' ); // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback_activate_plugin' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_activate_plugin' ) ); } public function test_callback_deactivate_plugin() { @@ -135,7 +135,7 @@ public function test_callback_deactivate_plugin() { \deactivate_plugins( array( 'hello.php' ) ); // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback_deactivate_plugin' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_deactivate_plugin' ) ); } public function test_callback_switch_theme() { @@ -154,7 +154,7 @@ public function test_callback_switch_theme() { switch_theme( 'twentytwenty' ); // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback_switch_theme' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_switch_theme' ) ); } public function test_callback_delete_site_transient_update_themes() { @@ -173,7 +173,7 @@ public function test_callback_delete_site_transient_update_themes() { delete_theme( 'twentyninteen' ); // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback_delete_site_transient_update_themes' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_delete_site_transient_update_themes' ) ); } public function test_callback_pre_set_site_transient_update_plugins() { @@ -201,7 +201,7 @@ public function test_callback_pre_set_site_transient_update_plugins() { // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback_pre_set_site_transient_update_plugins' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback_pre_set_site_transient_update_plugins' ) ); } public function test_callback__core_updated_successfully() { @@ -243,6 +243,6 @@ public function test_callback__core_updated_successfully() { // Do stuff. // Check callback test action. - $this->assertFalse( 0 === did_action( 'wp_stream_test_callback__core_updated_successfully' ) ); + $this->assertFalse( 0 === did_action( $this->action_prefix . 'callback__core_updated_successfully' ) ); } }