Changeset 51462 for trunk/tests/phpunit/tests/meta/query.php
- Timestamp:
- 07/19/2021 02:00:11 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/query.php
r51397 r51462 901 901 902 902 $sql = $query->get_sql( 'post', $wpdb->posts, 'ID', $this ); 903 $this->assert NotContains( "{$wpdb->postmeta}.meta_key = 'exclude'\nOR", $sql['where'] );904 $this->assert Contains( "{$wpdb->postmeta}.post_id IS NULL", $sql['where'] );903 $this->assertStringNotContainsString( "{$wpdb->postmeta}.meta_key = 'exclude'\nOR", $sql['where'] ); 904 $this->assertStringContainsString( "{$wpdb->postmeta}.post_id IS NULL", $sql['where'] ); 905 905 } 906 906 … … 927 927 // Use regex because we don't care about the whitespace before OR. 928 928 $this->assertRegExp( "/{$wpdb->postmeta}\.meta_key = \'exclude\'\s+OR/", $sql['where'] ); 929 $this->assert NotContains( "{$wpdb->postmeta}.post_id IS NULL", $sql['where'] );929 $this->assertStringNotContainsString( "{$wpdb->postmeta}.post_id IS NULL", $sql['where'] ); 930 930 } 931 931
Note: See TracChangeset
for help on using the changeset viewer.