@@ 207-214 (lines=8) @@ | ||
204 | * |
|
205 | * @covers ::add_upgrades_menu |
|
206 | */ |
|
207 | public function test_add_upgrades_menu() { |
|
208 | global $submenu; |
|
209 | ||
210 | static::$admin_menu->add_upgrades_menu(); |
|
211 | ||
212 | $this->assertSame( 'https://wordpress.com/plans/' . static::$domain, array_shift( $submenu['paid-upgrades.php'] )[2] ); |
|
213 | $this->assertSame( 'https://wordpress.com/purchases/subscriptions/' . static::$domain, array_shift( $submenu['paid-upgrades.php'] )[2] ); |
|
214 | } |
|
215 | ||
216 | /** |
|
217 | * Tests add_posts_menu |
|
@@ 221-228 (lines=8) @@ | ||
218 | * |
|
219 | * @covers ::add_posts_menu |
|
220 | */ |
|
221 | public function test_add_posts_menu() { |
|
222 | global $submenu; |
|
223 | ||
224 | static::$admin_menu->add_posts_menu(); |
|
225 | ||
226 | $this->assertSame( 'https://wordpress.com/posts/' . static::$domain, array_shift( $submenu['edit.php'] )[2] ); |
|
227 | $this->assertSame( 'https://wordpress.com/post/' . static::$domain, array_shift( $submenu['edit.php'] )[2] ); |
|
228 | } |
|
229 | ||
230 | /** |
|
231 | * Tests add_media_menu |
|
@@ 249-256 (lines=8) @@ | ||
246 | * |
|
247 | * @covers ::add_page_menu |
|
248 | */ |
|
249 | public function test_add_page_menu() { |
|
250 | global $submenu; |
|
251 | ||
252 | static::$admin_menu->add_page_menu(); |
|
253 | ||
254 | $this->assertSame( 'https://wordpress.com/pages/' . static::$domain, array_shift( $submenu['edit.php?post_type=page'] )[2] ); |
|
255 | $this->assertSame( 'https://wordpress.com/page/' . static::$domain, array_shift( $submenu['edit.php?post_type=page'] )[2] ); |
|
256 | } |
|
257 | ||
258 | /** |
|
259 | * Tests add_custom_post_type_menu |