Skip to content

Commit

Permalink
Installer connector test cleaned up.
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed Jan 5, 2021
1 parent 7c0f626 commit 4c1aa88
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/tests/connectors/test-class-connector-installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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' ) );
}
}

0 comments on commit 4c1aa88

Please sign in to comment.