@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | parent::setUp(); |
20 | 20 | |
21 | 21 | new WP_Site_Monitor(); |
22 | - (new Settings_Menu)->init_settings(); |
|
22 | + ( new Settings_Menu )->init_settings(); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -28,11 +28,11 @@ discard block |
||
28 | 28 | public function test_settings_unregistered_when_plugin_deactivated() { |
29 | 29 | global $wp_registered_settings; |
30 | 30 | |
31 | - $this->assertArrayHasKey(self::OPTION_NAME, $wp_registered_settings ); |
|
31 | + $this->assertArrayHasKey( self::OPTION_NAME, $wp_registered_settings ); |
|
32 | 32 | |
33 | 33 | WP_Site_Monitor::deactivate(); |
34 | 34 | |
35 | - $this->assertArrayNotHasKey(self::OPTION_NAME, $wp_registered_settings ); |
|
35 | + $this->assertArrayNotHasKey( self::OPTION_NAME, $wp_registered_settings ); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $this->settings_menu->init_settings(); |
44 | 44 | |
45 | 45 | $section_id = self::OPTION_NAME . '_section'; |
46 | - $this->assertContains(self::OPTION_NAME, $new_whitelist_options[self::OPTION_GROUP] ); |
|
46 | + $this->assertContains( self::OPTION_NAME, $new_whitelist_options[self::OPTION_GROUP] ); |
|
47 | 47 | $this->assertEquals( $section_id, $wp_settings_sections[self::OPTION_GROUP][$section_id]['id'] ); |
48 | 48 | $this->assertEquals( 'Enable/Disable WP Site Monitor', $wp_settings_sections[self::OPTION_GROUP][$section_id]['title'] ); |
49 | 49 | $this->assertEquals( self::OPTION_NAME, $wp_settings_fields[self::OPTION_GROUP][$section_id][self::OPTION_NAME]['id'] ); |