Changeset 42526
- Timestamp:
- 01/18/2018 05:14:28 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/listFilter.php
r42343 r42526 84 84 ), 'AND', 'name' 85 85 ); 86 $this->assertEquals( 2, count( $list ) );87 86 $this->assertEquals( 88 87 array( … … 100 99 ), 'OR', 'name' 101 100 ); 102 $this->assertEquals( 2, count( $list ) );103 101 $this->assertEquals( 104 102 array( … … 116 114 ), 'NOT', 'name' 117 115 ); 118 $this->assertEquals( 1, count( $list ) );119 116 $this->assertEquals( array( 'baz' => 'baz' ), $list ); 120 117 } … … 248 245 function test_filter_object_list_nested_array_and_field() { 249 246 $list = wp_filter_object_list( $this->object_list, array( 'field4' => array( 'blue' ) ), 'AND', 'name' ); 250 $this->assertEquals( 1, count( $list ) );251 247 $this->assertEquals( array( 'baz' => 'baz' ), $list ); 252 248 } … … 254 250 function test_filter_object_list_nested_array_not_field() { 255 251 $list = wp_filter_object_list( $this->object_list, array( 'field4' => array( 'green' ) ), 'NOT', 'name' ); 256 $this->assertEquals( 2, count( $list ) );257 252 $this->assertEquals( 258 253 array( … … 270 265 ), 'OR', 'name' 271 266 ); 272 $this->assertEquals( 2, count( $list ) );273 267 $this->assertEquals( 274 268 array(
Note: See TracChangeset
for help on using the changeset viewer.