Skip to content

Commit

Permalink
Menus connector cleaned up.
Browse files Browse the repository at this point in the history
kidunot89 committed Jan 5, 2021
1 parent e1129c6 commit cd8fe05
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions tests/tests/connectors/test-class-connector-menus.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
/**
* Tests for the Menus Connector class callbacks.
*
* @package WP_Stream
*/
namespace WP_Stream;

@@ -41,7 +43,7 @@ function( $subject ) {
wp_create_nav_menu( 'test-menu' );

// Check callback test action.
$this->assertGreaterThan( 0, did_action( 'wp_stream_test_callback_wp_create_nav_menu' ) );
$this->assertGreaterThan( 0, did_action( $this->action_prefix . 'callback_wp_create_nav_menu' ) );
}

public function test_callback_wp_update_nav_menu() {
@@ -78,7 +80,7 @@ public function test_callback_wp_update_nav_menu() {
);

// Check callback test action.
$this->assertGreaterThan( 0, did_action( 'wp_stream_test_callback_wp_update_nav_menu' ) );
$this->assertGreaterThan( 0, did_action( $this->action_prefix . 'callback_wp_update_nav_menu' ) );
}

public function test_callback_delete_nav_menu() {
@@ -108,7 +110,7 @@ public function test_callback_delete_nav_menu() {
wp_delete_nav_menu( $menu_id );

// Check callback test action.
$this->assertGreaterThan( 0, did_action( 'wp_stream_test_callback_delete_nav_menu' ) );
$this->assertGreaterThan( 0, did_action( $this->action_prefix . 'callback_delete_nav_menu' ) );
}

public function test_callback_update_option_theme_mods() {
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@
*
* @package WP_Stream
*/

namespace WP_Stream;

class Test_WP_Stream_Connector_User_Switching extends WP_StreamTestCase {

0 comments on commit cd8fe05

Please sign in to comment.