projects/plugins/jetpack/tests/php/modules/masterbar/test-class-atomic-admin-menu.php 1 location
|
@@ 486-495 (lines=10) @@
|
| 483 |
|
* |
| 484 |
|
* @covers ::add_options_menu |
| 485 |
|
*/ |
| 486 |
|
public function test_add_options_menu() { |
| 487 |
|
global $submenu; |
| 488 |
|
|
| 489 |
|
static::$admin_menu->add_options_menu( static::$domain ); |
| 490 |
|
|
| 491 |
|
$this->assertNotContains( 'options-discussion.php', $submenu['options-general.php'] ); |
| 492 |
|
$this->assertNotContains( 'options-writing.php', $submenu['options-general.php'] ); |
| 493 |
|
|
| 494 |
|
$this->assertContains( 'Hosting Configuration', $submenu['options-general.php'][6] ); |
| 495 |
|
} |
| 496 |
|
} |
| 497 |
|
|
projects/plugins/jetpack/tests/php/modules/masterbar/test-class-wpcom-admin-menu.php 1 location
|
@@ 534-543 (lines=10) @@
|
| 531 |
|
* |
| 532 |
|
* @covers ::add_options_menu |
| 533 |
|
*/ |
| 534 |
|
public function test_add_options_menu() { |
| 535 |
|
global $submenu; |
| 536 |
|
|
| 537 |
|
static::$admin_menu->add_options_menu( static::$domain ); |
| 538 |
|
|
| 539 |
|
$this->assertNotContains( 'options-discussion.php', $submenu['options-general.php'] ); |
| 540 |
|
$this->assertNotContains( 'options-writing.php', $submenu['options-general.php'] ); |
| 541 |
|
|
| 542 |
|
$this->assertContains( 'Hosting Configuration', $submenu['options-general.php'][6] ); |
| 543 |
|
} |
| 544 |
|
} |
| 545 |
|
|