- Timestamp:
- 01/09/2019 10:30:49 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r43636 r44510 630 630 } 631 631 632 /** 633 * @ticket 39122 634 */ 632 635 public function test_get_item_meta() { 633 636 $id = $this->factory->tag->create(); … … 639 642 $meta = (array) $data['meta']; 640 643 $this->assertArrayHasKey( 'test_single', $meta ); 641 $this->assert Equals( $meta['test_single'], '' );644 $this->assertSame( $meta['test_single'], '' ); 642 645 $this->assertArrayHasKey( 'test_multi', $meta ); 643 $this->assert Equals( $meta['test_multi'], array() );646 $this->assertSame( $meta['test_multi'], array() ); 644 647 $this->assertArrayHasKey( 'test_tag_single', $meta ); 645 $this->assert Equals( $meta['test_tag_single'], '' );648 $this->assertSame( $meta['test_tag_single'], '' ); 646 649 $this->assertArrayHasKey( 'test_tag_multi', $meta ); 647 $this->assertEquals( $meta['test_tag_multi'], array() ); 648 } 649 650 $this->assertSame( $meta['test_tag_multi'], array() ); 651 } 652 653 /** 654 * @ticket 39122 655 */ 650 656 public function test_get_item_meta_registered_for_different_taxonomy() { 651 657 $id = $this->factory->tag->create(); … … 656 662 657 663 $meta = (array) $data['meta']; 658 $this->assert Equals( false,isset( $meta['test_cat_meta'] ) );664 $this->assertFalse( isset( $meta['test_cat_meta'] ) ); 659 665 } 660 666
Note: See TracChangeset
for help on using the changeset viewer.