Changeset 38834
- Timestamp:
- 10/20/2016 05:12:26 AM (8 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r38763 r38834 461 461 462 462 remove_filter( 'notify_moderator', '__return_false' ); 463 463 remove_filter( 'comment_flood_filter', '__return_false' ); 464 464 } 465 465 … … 482 482 483 483 remove_filter( 'notify_moderator', '__return_true' ); 484 remove_filter( 'comment_flood_filter', '__return_false' ); 484 485 } 485 486 … … 503 504 504 505 remove_filter( 'notify_post_author', '__return_false' ); 506 remove_filter( 'comment_flood_filter', '__return_false' ); 505 507 } 506 508 … … 523 525 524 526 remove_filter( 'notify_post_author', '__return_true' ); 527 remove_filter( 'comment_flood_filter', '__return_false' ); 525 528 } 526 529 -
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r38832 r38834 426 426 $this->assertEquals( 201, $response->get_status() ); 427 427 $this->assertEquals( 'image', $data['media_type'] ); 428 $this->assertEquals( 'A field of amazing canola', $data['title']['rendered'] );429 $this->assertEquals( 'The description for the image', $data['caption'] );430 428 } 431 429 -
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r38832 r38834 678 678 $term = get_term_by( 'id', $this->factory->category->create(), 'category' ); 679 679 680 $request = new WP_REST_Request( 'POST', '/wp/v2/categories/' . $term->term_ taxonomy_id );680 $request = new WP_REST_Request( 'POST', '/wp/v2/categories/' . $term->term_id ); 681 681 $request->set_param( 'parent', $parent->term_id ); 682 682 $response = $this->server->dispatch( $request ); -
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r38832 r38834 532 532 $term = get_term_by( 'id', $this->factory->tag->create(), 'post_tag' ); 533 533 534 $request = new WP_REST_Request( 'POST', '/wp/v2/tags/' . $term->term_ taxonomy_id );534 $request = new WP_REST_Request( 'POST', '/wp/v2/tags/' . $term->term_id ); 535 535 $request->set_param( 'parent', REST_TESTS_IMPOSSIBLY_HIGH_NUMBER ); 536 536 $response = $this->server->dispatch( $request );
Note: See TracChangeset
for help on using the changeset viewer.