Changeset 52248 for trunk/tests/phpunit/tests/meta/registerMeta.php
- Timestamp:
- 11/25/2021 07:39:31 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/registerMeta.php
r49603 r52248 180 180 ), 181 181 ); 182 $this->assertSame( $ actual, $expected);182 $this->assertSame( $expected, $actual ); 183 183 } 184 184 … … 522 522 $object_id = self::$$object_property_name; 523 523 $default_value = get_metadata_default( $object_type, $object_id, $meta_key, $single ); 524 $this->assertSame( $ default_value, $expected);524 $this->assertSame( $expected, $default_value ); 525 525 526 526 // Check for default value. 527 527 $value = get_metadata( $object_type, $object_id, $meta_key, $single ); 528 $this->assertSame( $ value, $expected);528 $this->assertSame( $expected, $value ); 529 529 530 530 // Set value to check default is not being returned by mistake. … … 537 537 delete_metadata( $object_type, $object_id, $meta_key ); 538 538 $value = get_metadata( $object_type, $object_id, $meta_key, $single ); 539 $this->assertSame( $ value, $expected);539 $this->assertSame( $expected, $value ); 540 540 541 541 // Set other meta key, to make sure other keys are not effects. … … 569 569 $object_id = self::$$object_property_name; 570 570 $default_value = get_metadata_default( $object_type, $object_id, $meta_key, $single ); 571 $this->assertSame( $ default_value, $expected);571 $this->assertSame( $expected, $default_value ); 572 572 } 573 573
Note: See TracChangeset
for help on using the changeset viewer.