@@ 168-175 (lines=8) @@ | ||
165 | * |
|
166 | * @covers ::add_upgrades_menu |
|
167 | */ |
|
168 | public function test_add_upgrades_menu() { |
|
169 | global $submenu; |
|
170 | ||
171 | static::$admin_menu->add_upgrades_menu(); |
|
172 | ||
173 | $this->assertSame( 'https://wordpress.com/plans/' . static::$domain, $submenu['paid-upgrades.php'][1][2] ); |
|
174 | $this->assertSame( 'https://wordpress.com/purchases/subscriptions/' . static::$domain, $submenu['paid-upgrades.php'][2][2] ); |
|
175 | } |
|
176 | ||
177 | /** |
|
178 | * Tests add_posts_menu |
|
@@ 182-189 (lines=8) @@ | ||
179 | * |
|
180 | * @covers ::add_posts_menu |
|
181 | */ |
|
182 | public function test_add_posts_menu() { |
|
183 | global $submenu; |
|
184 | ||
185 | static::$admin_menu->add_posts_menu(); |
|
186 | ||
187 | $this->assertSame( 'https://wordpress.com/posts/' . static::$domain, $submenu['edit.php'][0][2] ); |
|
188 | $this->assertSame( 'https://wordpress.com/post/' . static::$domain, $submenu['edit.php'][1][2] ); |
|
189 | } |
|
190 | ||
191 | /** |
|
192 | * Tests add_media_menu |
|
@@ 210-217 (lines=8) @@ | ||
207 | * |
|
208 | * @covers ::add_page_menu |
|
209 | */ |
|
210 | public function test_add_page_menu() { |
|
211 | global $submenu; |
|
212 | ||
213 | static::$admin_menu->add_page_menu(); |
|
214 | ||
215 | $this->assertSame( 'https://wordpress.com/pages/' . static::$domain, $submenu['edit.php?post_type=page'][0][2] ); |
|
216 | $this->assertSame( 'https://wordpress.com/page/' . static::$domain, $submenu['edit.php?post_type=page'][1][2] ); |
|
217 | } |
|
218 | ||
219 | /** |
|
220 | * Tests add_custom_post_type_menu |