@@ 269-278 (lines=10) @@ | ||
266 | * |
|
267 | * @covers ::add_appearance_menu |
|
268 | */ |
|
269 | public function test_add_appearance_menu() { |
|
270 | global $submenu; |
|
271 | ||
272 | static::$admin_menu->add_appearance_menu(); |
|
273 | ||
274 | $this->assertSame( 'https://wordpress.com/themes/' . static::$domain, array_shift( $submenu['themes.php'] )[2] ); |
|
275 | $this->assertSame( 'https://wordpress.com/customize/' . static::$domain, array_shift( $submenu['themes.php'] )[2] ); |
|
276 | $this->assertSame( 'https://wordpress.com/customize/' . static::$domain . '?autofocus%5Bpanel%5D=nav_menus', array_shift( $submenu['themes.php'] )[2] ); |
|
277 | $this->assertSame( 'https://wordpress.com/customize/' . static::$domain . '?autofocus%5Bpanel%5D=widgets', array_shift( $submenu['themes.php'] )[2] ); |
|
278 | } |
|
279 | ||
280 | /** |
|
281 | * Tests add_plugins_menu |
|
@@ 352-361 (lines=10) @@ | ||
349 | * |
|
350 | * @covers ::add_tools_menu |
|
351 | */ |
|
352 | public function test_add_tools_menu() { |
|
353 | global $submenu; |
|
354 | ||
355 | static::$admin_menu->add_tools_menu(); |
|
356 | ||
357 | $this->assertSame( 'https://wordpress.com/marketing/tools/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
|
358 | $this->assertSame( 'https://wordpress.com/earn/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
|
359 | $this->assertSame( 'https://wordpress.com/import/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
|
360 | $this->assertSame( 'https://wordpress.com/export/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
|
361 | } |
|
362 | ||
363 | /** |
|
364 | * Tests add_options_menu |