@@ -20,7 +20,7 @@ public function setUp() {
2020
2121 // Make partial of Connector_BbPress class, with mocked "log" function.
2222 $ this ->mock = $ this ->getMockBuilder ( Connector_BbPress::class )
23- ->setMethods ( [ 'log ' ] )
23+ ->setMethods ( array ( 'log ' ) )
2424 ->getMock ();
2525
2626 $ this ->mock ->register ();
@@ -52,7 +52,7 @@ public function test_log_override() {
5252 'wp_stream_log_data ' ,
5353 function ( $ data ) use ( &$ asserted ) {
5454 $ message = _x (
55- '"%1$s" %2$s updated ' ,
55+ '"%1$s" %2$s published ' ,
5656 '1: Post title, 2: Post type singular name ' ,
5757 'stream '
5858 );
@@ -86,10 +86,10 @@ public function test_callback_bbp_toggle_topic_admin() {
8686 // Create forum and topic for later use.
8787 $ forum_id = bbp_insert_forum ( [ 'post_title ' => 'Test Forum ' ] );
8888 $ topic_id = bbp_insert_topic (
89- [
89+ array (
9090 'post_title ' => 'Test Topic ' ,
9191 'post_parent ' => $ forum_id ,
92- ]
92+ )
9393 );
9494 $ topic = get_post ( $ topic_id );
9595
@@ -123,6 +123,6 @@ public function test_callback_bbp_toggle_topic_admin() {
123123 );
124124
125125 // Check callback test action.
126- $ this ->assertGreaterThan ( 0 , did_action ( ' wp_stream_test_callback_bbp_toggle_topic_admin ' ) );
126+ $ this ->assertGreaterThan ( 0 , did_action ( $ this -> action_prefix . ' callback_bbp_toggle_topic_admin ' ) );
127127 }
128128}
0 commit comments