Changeset 56746 for trunk/tests/phpunit/tests/meta.php
- Timestamp:
- 09/29/2023 03:22:12 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/meta.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta.php
r56695 r56746 152 152 153 153 // Test EXISTS and NOT EXISTS together, no users should be found. 154 $this->assert Same(154 $this->assertCount( 155 155 0, 156 count( 157 get_users( 158 array( 159 'meta_query' => array( 160 array( 161 'key' => 'meta_key', 162 'compare' => 'NOT EXISTS', 163 ), 164 array( 165 'key' => 'delete_meta_key', 166 'compare' => 'EXISTS', 167 ), 156 get_users( 157 array( 158 'meta_query' => array( 159 array( 160 'key' => 'meta_key', 161 'compare' => 'NOT EXISTS', 168 162 ), 169 ) 163 array( 164 'key' => 'delete_meta_key', 165 'compare' => 'EXISTS', 166 ), 167 ), 170 168 ) 171 169 ) 172 170 ); 173 171 174 $this->assert Same(172 $this->assertCount( 175 173 2, 176 count( 177 get_users( 178 array( 179 'meta_query' => array( 180 array( 181 'key' => 'non_existing_meta', 182 'compare' => 'NOT EXISTS', 183 ), 174 get_users( 175 array( 176 'meta_query' => array( 177 array( 178 'key' => 'non_existing_meta', 179 'compare' => 'NOT EXISTS', 184 180 ), 185 ) 181 ), 186 182 ) 187 183 ) … … 190 186 delete_metadata( 'user', $this->author->ID, 'meta_key' ); 191 187 192 $this->assert Same(188 $this->assertCount( 193 189 2, 194 count( 195 get_users( 196 array( 197 'meta_query' => array( 198 array( 199 'key' => 'meta_key', 200 'compare' => 'NOT EXISTS', 201 ), 190 get_users( 191 array( 192 'meta_query' => array( 193 array( 194 'key' => 'meta_key', 195 'compare' => 'NOT EXISTS', 202 196 ), 203 ) 197 ), 204 198 ) 205 199 )
Note: See TracChangeset
for help on using the changeset viewer.