Changeset 1046 in tests
- Timestamp:
- 09/25/2012 01:44:59 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/tests/ms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/ms.php
r1045 r1046 481 481 } 482 482 } 483 484 /** 485 * @ticket 21552 486 */ 487 function test_sanitize_ms_options() { 488 update_option( 'illegal_names', array( '', 'Woo', '' ) ); 489 update_option( 'limited_email_domains', array( 'woo', '', 'boo.com', 'foo.net.biz..' ) ); 490 update_option( 'banned_email_domains', array( 'woo', '', 'boo.com', 'foo.net.biz..' ) ); 491 492 $this->assertEquals( array( 'Woo' ), get_option( 'illegal_names' ) ); 493 $this->assertEquals( array( 'woo', 'boo.com' ), get_option( 'limited_email_domains' ) ); 494 $this->assertEquals( array( 'woo', 'boo.com' ), get_option( 'banned_email_domains' ) ); 495 496 foreach ( array( 'illegal_names', 'limited_email_domains', 'banned_email_domains' ) as $option ) { 497 update_option( $option, array() ); 498 $this->assertSame( '', get_option( $option ) ); 499 } 500 } 483 501 } 484 502
Note: See TracChangeset
for help on using the changeset viewer.