- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-block-type-controller.php
r48937 r48939 144 144 $response = rest_get_server()->dispatch( $request ); 145 145 $data = $response->get_data(); 146 $this->assert EqualSets( array( $block_styles ), $data['styles'] );146 $this->assertSameSets( array( $block_styles ), $data['styles'] ); 147 147 148 148 } … … 185 185 ), 186 186 ); 187 $this->assert EqualSets( $expected, $data['styles'] );187 $this->assertSameSets( $expected, $data['styles'] ); 188 188 189 189 } … … 239 239 $this->assertNull( $data['editor_style'] ); 240 240 $this->assertNull( $data['style'] ); 241 $this->assert EqualSets( array(), $data['provides_context'] );242 $this->assert EqualSets( array(), $data['attributes'] );243 $this->assert EqualSets( array( 'invalid_uses_context' ), $data['uses_context'] );244 $this->assert EqualSets( array( 'invalid_keywords' ), $data['keywords'] );245 $this->assert EqualSets( array( 'invalid_parent' ), $data['parent'] );246 $this->assert EqualSets( array(), $data['supports'] );247 $this->assert EqualSets( array(), $data['styles'] );241 $this->assertSameSets( array(), $data['provides_context'] ); 242 $this->assertSameSets( array(), $data['attributes'] ); 243 $this->assertSameSets( array( 'invalid_uses_context' ), $data['uses_context'] ); 244 $this->assertSameSets( array( 'invalid_keywords' ), $data['keywords'] ); 245 $this->assertSameSets( array( 'invalid_parent' ), $data['parent'] ); 246 $this->assertSameSets( array(), $data['supports'] ); 247 $this->assertSameSets( array(), $data['styles'] ); 248 248 $this->assertNull( $data['example'] ); 249 249 $this->assertNull( $data['category'] ); … … 290 290 $this->assertNull( $data['editor_style'] ); 291 291 $this->assertNull( $data['style'] ); 292 $this->assert EqualSets( array(), $data['attributes'] );293 $this->assert EqualSets( array(), $data['provides_context'] );294 $this->assert EqualSets( array(), $data['uses_context'] );295 $this->assert EqualSets( array(), $data['keywords'] );296 $this->assert EqualSets( array(), $data['parent'] );297 $this->assert EqualSets( array(), $data['supports'] );298 $this->assert EqualSets( array(), $data['styles'] );292 $this->assertSameSets( array(), $data['attributes'] ); 293 $this->assertSameSets( array(), $data['provides_context'] ); 294 $this->assertSameSets( array(), $data['uses_context'] ); 295 $this->assertSameSets( array(), $data['keywords'] ); 296 $this->assertSameSets( array(), $data['parent'] ); 297 $this->assertSameSets( array(), $data['supports'] ); 298 $this->assertSameSets( array(), $data['styles'] ); 299 299 $this->assertNull( $data['example'] ); 300 300 $this->assertNull( $data['category'] );
Note: See TracChangeset
for help on using the changeset viewer.