diff --git a/tests/phpunit/tests/admin/includesListTable.php b/tests/phpunit/tests/admin/includesListTable.php index f71da898f5c0..92fb14a07faf 100644 --- a/tests/phpunit/tests/admin/includesListTable.php +++ b/tests/phpunit/tests/admin/includesListTable.php @@ -221,7 +221,7 @@ protected function _test_list_hierarchical_page( array $args, array $expected_id $this->assertCount( count( $expected_ids ), array_keys( $matches[0] ) ); foreach ( $expected_ids as $id ) { - $this->assertContains( sprintf( 'id="post-%d"', $id ), $output ); + $this->assertStringContainsString( sprintf( 'id="post-%d"', $id ), $output ); } } @@ -236,7 +236,7 @@ function test_filter_button_should_not_be_shown_if_there_are_no_posts() { $this->table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertNotContains( 'id="post-query-submit"', $output ); + $this->assertStringNotContainsString( 'id="post-query-submit"', $output ); } /** @@ -250,7 +250,7 @@ function test_months_dropdown_should_not_be_shown_if_there_are_no_posts() { $this->table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertNotContains( 'id="filter-by-date"', $output ); + $this->assertStringNotContainsString( 'id="filter-by-date"', $output ); } /** @@ -264,7 +264,7 @@ function test_category_dropdown_should_not_be_shown_if_there_are_no_posts() { $this->table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertNotContains( 'id="cat"', $output ); + $this->assertStringNotContainsString( 'id="cat"', $output ); } /** @@ -278,7 +278,7 @@ public function test_empty_trash_button_should_not_be_shown_if_there_are_no_post $this->table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertNotContains( 'id="delete_all"', $output ); + $this->assertStringNotContainsString( 'id="delete_all"', $output ); } /** @@ -291,7 +291,7 @@ public function test_filter_button_should_not_be_shown_if_there_are_no_comments( $table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertNotContains( 'id="post-query-submit"', $output ); + $this->assertStringNotContainsString( 'id="post-query-submit"', $output ); } /** @@ -313,7 +313,7 @@ public function test_filter_button_should_be_shown_if_there_are_comments() { $table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertContains( 'id="post-query-submit"', $output ); + $this->assertStringContainsString( 'id="post-query-submit"', $output ); } /** @@ -335,8 +335,8 @@ public function test_filter_comment_status_dropdown_should_be_shown_if_there_are $table->extra_tablenav( 'top' ); $output = ob_get_clean(); - $this->assertContains( 'id="filter-by-comment-type"', $output ); - $this->assertContains( "