@@ 197-205 (lines=9) @@ | ||
194 | * |
|
195 | * @covers ::add_upgrades_menu |
|
196 | */ |
|
197 | public function test_add_upgrades_menu() { |
|
198 | global $submenu; |
|
199 | ||
200 | static::$admin_menu->add_upgrades_menu( 'Test Plan' ); |
|
201 | ||
202 | $this->assertSame( 'Upgrades<span class="inline-text" style="display:none">Test Plan</span>', $submenu['paid-upgrades.php'][0][0] ); |
|
203 | $this->assertSame( 'https://wordpress.com/plans/my-plan/' . static::$domain, $submenu['paid-upgrades.php'][1][2] ); |
|
204 | $this->assertSame( 'https://wordpress.com/purchases/subscriptions/' . static::$domain, $submenu['paid-upgrades.php'][2][2] ); |
|
205 | } |
|
206 | ||
207 | /** |
|
208 | * Tests add_posts_menu |
|
@@ 417-425 (lines=9) @@ | ||
414 | * |
|
415 | * @covers ::add_jetpack_menu |
|
416 | */ |
|
417 | public function test_add_jetpack_menu() { |
|
418 | global $submenu; |
|
419 | ||
420 | static::$admin_menu->add_jetpack_menu(); |
|
421 | ||
422 | $this->assertSame( 'https://wordpress.com/activity-log/' . static::$domain, $submenu['jetpack'][3][2] ); |
|
423 | $this->assertSame( 'https://wordpress.com/backup/' . static::$domain, $submenu['jetpack'][4][2] ); |
|
424 | $this->assertSame( 'https://wordpress.com/jetpack-search/' . static::$domain, $submenu['jetpack'][5][2] ); |
|
425 | } |
|
426 | ||
427 | /** |
|
428 | * Tests add_gutenberg_menus |