@@ -90,8 +90,6 @@ class Test_WP_Stream_Connector_BuddyPress extends WP_StreamTestCase {
9090 public function setUp () {
9191 parent ::setUp ();
9292
93- $ this ->plugin ->connectors ->unload_connector ( 'buddypress ' );
94-
9593 // Make partial of Connector_BuddyPress class, with mocked "log" function.
9694 $ this ->mock = $ this ->getMockBuilder ( Connector_BuddyPress::class )
9795 ->setMethods ( array ( 'log ' ) )
@@ -671,7 +669,7 @@ function( $subject ) {
671669 'name ' => 'Test field ' ,
672670 'description ' => 'Lorem ipsum dolor ' ,
673671 'type ' => 'textbox ' ,
674- 'field_group_id ' => $ group
672+ 'field_group_id ' => $ group_id
675673 );
676674 $ field_id = \xprofile_insert_field ( $ field_args );
677675 $ field = new \BP_XProfile_Field ( $ field_id );
@@ -691,11 +689,11 @@ function( $subject ) {
691689 $ this ->assertTrue ( xprofile_admin_delete_group ( $ group ->id ) );
692690
693691 // Check callback test actions.
692+ $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_group_before_save ' ) );
693+ $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_group_after_save ' ) );
694694 $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_field_before_save ' ) );
695695 $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_field_after_save ' ) );
696696 $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_fields_deleted_field ' ) );
697- $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_group_before_save ' ) );
698- $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_group_after_save ' ) );
699697 $ this ->assertFalse ( 0 === did_action ( $ this ->action_prefix . 'callback_xprofile_groups_deleted_group ' ) );
700698 }
701699}
0 commit comments