Changeset 33947 for trunk/tests/phpunit/tests/option/userSettings.php
- Timestamp:
- 09/08/2015 04:43:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/userSettings.php
r33840 r33947 35 35 $this->assertEmpty( $foo ); 36 36 37 $this->set_user_setting( 'foo', 'foo-bar ' );37 $this->set_user_setting( 'foo', 'foo-bar-baz' ); 38 38 39 $this->assertEquals( 'foo-bar', get_user_setting( 'foo' ) ); 39 $this->assertEquals( 'foo-bar-baz', get_user_setting( 'foo' ) ); 40 } 41 42 function test_set_user_setting_strip_asterisks() { 43 $foo = get_user_setting( 'foo' ); 44 45 $this->assertEmpty( $foo ); 46 47 $this->set_user_setting( 'foo', 'foo*bar*baz' ); 48 49 $this->assertEquals( 'foobarbaz', get_user_setting( 'foo' ) ); 40 50 } 41 51
Note: See TracChangeset
for help on using the changeset viewer.