|
@@ 310-319 (lines=10) @@
|
| 307 |
|
* |
| 308 |
|
* @covers ::add_appearance_menu |
| 309 |
|
*/ |
| 310 |
|
public function test_add_appearance_menu() { |
| 311 |
|
global $submenu; |
| 312 |
|
|
| 313 |
|
static::$admin_menu->add_appearance_menu(); |
| 314 |
|
|
| 315 |
|
$this->assertSame( 'https://wordpress.com/themes/' . static::$domain, array_shift( $submenu['themes.php'] )[2] ); |
| 316 |
|
$this->assertSame( 'https://wordpress.com/customize/' . static::$domain, array_shift( $submenu['themes.php'] )[2] ); |
| 317 |
|
$this->assertSame( 'https://wordpress.com/customize/' . static::$domain . '?autofocus%5Bpanel%5D=nav_menus', array_shift( $submenu['themes.php'] )[2] ); |
| 318 |
|
$this->assertSame( 'https://wordpress.com/customize/' . static::$domain . '?autofocus%5Bpanel%5D=widgets', array_shift( $submenu['themes.php'] )[2] ); |
| 319 |
|
} |
| 320 |
|
|
| 321 |
|
/** |
| 322 |
|
* Tests add_plugins_menu |
|
@@ 393-402 (lines=10) @@
|
| 390 |
|
* |
| 391 |
|
* @covers ::add_tools_menu |
| 392 |
|
*/ |
| 393 |
|
public function test_add_tools_menu() { |
| 394 |
|
global $submenu; |
| 395 |
|
|
| 396 |
|
static::$admin_menu->add_tools_menu(); |
| 397 |
|
|
| 398 |
|
$this->assertSame( 'https://wordpress.com/marketing/tools/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
| 399 |
|
$this->assertSame( 'https://wordpress.com/earn/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
| 400 |
|
$this->assertSame( 'https://wordpress.com/import/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
| 401 |
|
$this->assertSame( 'https://wordpress.com/export/' . static::$domain, array_shift( $submenu['tools.php'] )[2] ); |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
/** |
| 405 |
|
* Tests add_options_menu |