Changeset 48939 for trunk/tests/phpunit/tests/meta/deleteMetadata.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/deleteMetadata.php
r48937 r48939 11 11 } 12 12 $m = get_metadata( 'post', 12345, 'foo', false ); 13 $this->assert EqualSets( $vals, $m );13 $this->assertSameSets( $vals, $m ); 14 14 15 15 delete_metadata( 'post', 12345, 'foo' ); 16 16 $m = get_metadata( 'post', 12345, 'foo', false ); 17 $this->assert EqualSets( array(), $m );17 $this->assertSameSets( array(), $m ); 18 18 } 19 19 … … 24 24 } 25 25 $m = get_metadata( 'post', 12345, 'foo', false ); 26 $this->assert EqualSets( $vals, $m );26 $this->assertSameSets( $vals, $m ); 27 27 28 28 delete_metadata( 'post', 12345, 'foo', '1' ); … … 30 30 $expected = array_diff( $vals, array( '1' ) ); 31 31 32 $this->assert EqualSets( $expected, $m );32 $this->assertSameSets( $expected, $m ); 33 33 } 34 34 … … 42 42 } 43 43 $m = get_metadata( 'post', 12345, 'foo', false ); 44 $this->assert EqualSets( $vals, $m );44 $this->assertSameSets( $vals, $m ); 45 45 46 46 delete_metadata( 'post', 12345, 'foo', '0' ); … … 48 48 $expected = array_diff( $vals, array( '0' ) ); 49 49 50 $this->assert EqualSets( $expected, $m );50 $this->assertSameSets( $expected, $m ); 51 51 } 52 52 … … 62 62 } 63 63 $m = get_metadata( 'post', 12345, 'foo', false ); 64 $this->assert EqualSets( $vals, $m );64 $this->assertSameSets( $vals, $m ); 65 65 66 66 delete_metadata( 'post', 12345, 'foo', '' ); 67 67 $m = get_metadata( 'post', 12345, 'foo', false ); 68 $this->assert EqualSets( array(), $m );68 $this->assertSameSets( array(), $m ); 69 69 } 70 70 … … 78 78 } 79 79 $m = get_metadata( 'post', 12345, 'foo', false ); 80 $this->assert EqualSets( $vals, $m );80 $this->assertSameSets( $vals, $m ); 81 81 82 82 delete_metadata( 'post', 12345, 'foo', null ); 83 83 $m = get_metadata( 'post', 12345, 'foo', false ); 84 $this->assert EqualSets( array(), $m );84 $this->assertSameSets( array(), $m ); 85 85 } 86 86 … … 94 94 } 95 95 $m = get_metadata( 'post', 12345, 'foo', false ); 96 $this->assert EqualSets( $vals, $m );96 $this->assertSameSets( $vals, $m ); 97 97 98 98 delete_metadata( 'post', 12345, 'foo', false ); 99 99 $m = get_metadata( 'post', 12345, 'foo', false ); 100 $this->assert EqualSets( array(), $m );100 $this->assertSameSets( array(), $m ); 101 101 } 102 102
Note: See TracChangeset
for help on using the changeset viewer.