Changeset 48937 for trunk/tests/phpunit/tests/option/registration.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/registration.php
r46586 r48937 12 12 13 13 $args = $registered['test_option']; 14 $this->assert Equals( 'test_group', $args['group'] );14 $this->assertSame( 'test_group', $args['group'] ); 15 15 16 16 // Check defaults. 17 $this->assert Equals( 'string', $args['type'] );18 $this->assert Equals( false,$args['show_in_rest'] );19 $this->assert Equals( '', $args['description'] );17 $this->assertSame( 'string', $args['type'] ); 18 $this->assertFalse( $args['show_in_rest'] ); 19 $this->assertSame( '', $args['description'] ); 20 20 } 21 21 … … 24 24 25 25 $filtered = apply_filters( 'sanitize_option_test_option', 'smart', 'test_option', 'smart' ); 26 $this->assert Equals( 'S-M-R-T', $filtered );26 $this->assertSame( 'S-M-R-T', $filtered ); 27 27 } 28 28 … … 37 37 38 38 $filtered = apply_filters( 'sanitize_option_test_option', 'smart', 'test_option', 'smart' ); 39 $this->assert Equals( 'S-M-R-T', $filtered );39 $this->assertSame( 'S-M-R-T', $filtered ); 40 40 } 41 41 … … 56 56 ); 57 57 58 $this->assert Equals( 'Got that Viper with them rally stripes', get_option( 'test_default' ) );58 $this->assertSame( 'Got that Viper with them rally stripes', get_option( 'test_default' ) ); 59 59 } 60 60 … … 73 73 // This set of tests/references (and a previous version) are in support of Viper007Bond. 74 74 // His Viper doesn't have rally stripes, but for the sake of the Big Tymers, we'll go with it. 75 $this->assert Equals( 'We the #1 Stunnas', get_option( 'test_default', 'We the #1 Stunnas' ) );75 $this->assertSame( 'We the #1 Stunnas', get_option( 'test_default', 'We the #1 Stunnas' ) ); 76 76 } 77 77 … … 89 89 wp_cache_delete( 'notoptions', 'options' ); 90 90 $this->assertTrue( add_option( 'test_default', 'hello' ) ); 91 $this->assert Equals( 'hello', get_option( 'test_default' ) );91 $this->assertSame( 'hello', get_option( 'test_default' ) ); 92 92 } 93 93
Note: See TracChangeset
for help on using the changeset viewer.