Changeset 51462 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 07/19/2021 02:00:11 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r51367 r51462 2485 2485 ) 2486 2486 ); 2487 $this->assert NotContains( 'comment_author LIKE', $q->request );2487 $this->assertStringNotContainsString( 'comment_author LIKE', $q->request ); 2488 2488 } 2489 2489 … … 2498 2498 ) 2499 2499 ); 2500 $this->assert NotContains( 'comment_author LIKE', $q->request );2500 $this->assertStringNotContainsString( 'comment_author LIKE', $q->request ); 2501 2501 } 2502 2502 … … 2511 2511 ) 2512 2512 ); 2513 $this->assert NotContains( 'comment_author LIKE', $q->request );2513 $this->assertStringNotContainsString( 'comment_author LIKE', $q->request ); 2514 2514 } 2515 2515 … … 2525 2525 ) 2526 2526 ); 2527 $this->assert Contains( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) );2527 $this->assertStringContainsString( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) ); 2528 2528 } 2529 2529 … … 2539 2539 ) 2540 2540 ); 2541 $this->assert Contains( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) );2541 $this->assertStringContainsString( "comment_author LIKE '%0%'", $wpdb->remove_placeholder_escape( $q->request ) ); 2542 2542 } 2543 2543 … … 2548 2548 $q->query( array() ); 2549 2549 2550 $this->assert Contains( "ORDER BY $wpdb->comments.comment_date_gmt", $q->request );2550 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_date_gmt", $q->request ); 2551 2551 } 2552 2552 … … 2561 2561 ); 2562 2562 2563 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent", $q->request );2563 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent", $q->request ); 2564 2564 } 2565 2565 … … 2574 2574 ); 2575 2575 2576 $this->assert Contains( "ORDER BY $wpdb->comments.comment_date_gmt", $q->request );2576 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_date_gmt", $q->request ); 2577 2577 } 2578 2578 … … 2587 2587 ); 2588 2588 2589 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request );2589 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request ); 2590 2590 } 2591 2591 … … 2600 2600 ); 2601 2601 2602 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request );2602 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request ); 2603 2603 } 2604 2604 … … 2613 2613 ); 2614 2614 2615 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request );2615 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request ); 2616 2616 } 2617 2617 … … 2626 2626 ); 2627 2627 2628 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request );2628 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_approved DESC", $q->request ); 2629 2629 } 2630 2630 … … 2639 2639 ); 2640 2640 2641 $this->assert Contains( "ORDER BY $wpdb->comments.comment_date_gmt", $q->request );2641 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_date_gmt", $q->request ); 2642 2642 } 2643 2643 … … 2653 2653 ); 2654 2654 2655 $this->assert NotContains( 'ORDER BY', $q->request );2655 $this->assertStringNotContainsString( 'ORDER BY', $q->request ); 2656 2656 } 2657 2657 … … 2667 2667 ); 2668 2668 2669 $this->assert NotContains( 'ORDER BY', $q->request );2669 $this->assertStringNotContainsString( 'ORDER BY', $q->request ); 2670 2670 } 2671 2671 … … 2681 2681 ); 2682 2682 2683 $this->assert NotContains( 'ORDER BY', $q->request );2683 $this->assertStringNotContainsString( 'ORDER BY', $q->request ); 2684 2684 } 2685 2685 … … 2702 2702 ); 2703 2703 2704 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date_gmt ASC, $wpdb->comments.comment_ID DESC", $q->request );2704 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date_gmt ASC, $wpdb->comments.comment_ID DESC", $q->request ); 2705 2705 } 2706 2706 … … 2723 2723 ); 2724 2724 2725 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_ID DESC", $q->request );2725 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_ID DESC", $q->request ); 2726 2726 } 2727 2727 … … 2744 2744 ); 2745 2745 2746 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date_gmt DESC, $wpdb->comments.comment_ID DESC", $q->request );2746 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date_gmt DESC, $wpdb->comments.comment_ID DESC", $q->request ); 2747 2747 } 2748 2748 … … 2764 2764 ); 2765 2765 2766 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date_gmt ASC, $wpdb->comments.comment_ID ASC", $q->request );2766 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date_gmt ASC, $wpdb->comments.comment_ID ASC", $q->request ); 2767 2767 } 2768 2768 … … 2784 2784 ); 2785 2785 2786 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date ASC, $wpdb->comments.comment_ID ASC", $q->request );2786 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent DESC, $wpdb->comments.comment_date ASC, $wpdb->comments.comment_ID ASC", $q->request ); 2787 2787 } 2788 2788 … … 2803 2803 ); 2804 2804 2805 $this->assert Contains( "ORDER BY $wpdb->comments.comment_agent ASC, $wpdb->comments.comment_ID DESC", $q->request );2805 $this->assertStringContainsString( "ORDER BY $wpdb->comments.comment_agent ASC, $wpdb->comments.comment_ID DESC", $q->request ); 2806 2806 } 2807 2807
Note: See TracChangeset
for help on using the changeset viewer.