- Timestamp:
- 06/07/2021 11:16:29 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-sidebars-controller.php
r50995 r51079 133 133 $data = $response->get_data(); 134 134 135 $this->assert Equals( array(), $data );135 $this->assertSame( array(), $data ); 136 136 } 137 137 … … 171 171 $data = $response->get_data(); 172 172 $data = $this->remove_links( $data ); 173 $this->assert Equals(173 $this->assertSame( 174 174 array( 175 175 array( … … 177 177 'name' => 'Test sidebar', 178 178 'description' => '', 179 'status' => 'active',180 'widgets' => array(),181 179 'class' => '', 182 180 'before_widget' => '', … … 184 182 'before_title' => '', 185 183 'after_title' => '', 184 'status' => 'active', 185 'widgets' => array(), 186 186 ), 187 187 ), … … 220 220 $data = $response->get_data(); 221 221 $data = $this->remove_links( $data ); 222 $this->assert Equals(222 $this->assertSame( 223 223 array( 224 224 array( … … 226 226 'name' => 'Test sidebar', 227 227 'description' => '', 228 'class' => '', 229 'before_widget' => '', 230 'after_widget' => '', 231 'before_title' => '', 232 'after_title' => '', 228 233 'status' => 'active', 229 234 'widgets' => array( … … 231 236 'rss-1', 232 237 ), 233 'class' => '',234 'before_widget' => '',235 'after_widget' => '',236 'before_title' => '',237 'after_title' => '',238 238 ), 239 239 ), … … 257 257 $data = $response->get_data(); 258 258 $data = $this->remove_links( $data ); 259 $this->assert Equals(259 $this->assertSame( 260 260 array( 261 261 'id' => 'sidebar-1', 262 262 'name' => 'Test sidebar', 263 263 'description' => '', 264 'status' => 'active',265 'widgets' => array(),266 264 'class' => '', 267 265 'before_widget' => '', … … 269 267 'before_title' => '', 270 268 'after_title' => '', 269 'status' => 'active', 270 'widgets' => array(), 271 271 ), 272 272 $data … … 359 359 $data = $response->get_data(); 360 360 $data = $this->remove_links( $data ); 361 $this->assert Equals(361 $this->assertSame( 362 362 array( 363 363 'id' => 'sidebar-1', 364 364 'name' => 'Test sidebar', 365 365 'description' => '', 366 'status' => 'active',367 'widgets' => array(368 'text-1',369 'text-2',370 ),371 366 'class' => '', 372 367 'before_widget' => '', … … 374 369 'before_title' => '', 375 370 'after_title' => '', 371 'status' => 'active', 372 'widgets' => array( 373 'text-1', 374 'text-2', 375 ), 376 376 ), 377 377 $data … … 502 502 $data = $response->get_data(); 503 503 $data = $this->remove_links( $data ); 504 $this->assert Equals(504 $this->assertSame( 505 505 array( 506 506 array( … … 508 508 'name' => 'Test sidebar', 509 509 'description' => '', 510 'status' => 'active',511 'widgets' => array(512 'text-1',513 ),514 510 'class' => '', 515 511 'before_widget' => '', … … 517 513 'before_title' => '', 518 514 'after_title' => '', 515 'status' => 'active', 516 'widgets' => array( 517 'text-1', 518 ), 519 519 ), 520 520 array( … … 522 522 'name' => 'Inactive widgets', 523 523 'description' => '', 524 'status' => 'inactive',525 'widgets' => array(526 'rss-1',527 ),528 524 'class' => '', 529 525 'before_widget' => '', … … 531 527 'before_title' => '', 532 528 'after_title' => '', 529 'status' => 'inactive', 530 'widgets' => array( 531 'rss-1', 532 ), 533 533 ), 534 534 ),
Note: See TracChangeset
for help on using the changeset viewer.