Changeset 47122 for trunk/tests/phpunit/tests/option/option.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/option/option.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/option.php
r46586 r47122 19 19 $this->assertTrue( add_option( $key, $value ) ); 20 20 $this->assertEquals( $value, get_option( $key ) ); 21 $this->assertFalse( add_option( $key, $value ) ); // Already exists22 $this->assertFalse( update_option( $key, $value ) ); // Value is the same21 $this->assertFalse( add_option( $key, $value ) ); // Already exists. 22 $this->assertFalse( update_option( $key, $value ) ); // Value is the same. 23 23 $this->assertTrue( update_option( $key, $value2 ) ); 24 24 $this->assertEquals( $value2, get_option( $key ) ); … … 55 55 remove_filter( 'default_option_doesnotexist', array( $this, '__return_foo' ) ); 56 56 57 // Cleanup 57 // Cleanup. 58 58 $this->assertTrue( delete_option( 'doesnotexist' ) ); 59 59 $this->assertFalse( get_option( 'doesnotexist' ) );
Note: See TracChangeset
for help on using the changeset viewer.