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