Ticket #34113: 34113-unit-tests.diff
File 34113-unit-tests.diff, 692 bytes (added by , 9 years ago) |
---|
-
tests/phpunit/tests/adminbar.php
380 380 $this->assertNull( $node_edit ); 381 381 } 382 382 383 /** 384 * @ticket 34113 385 */ 386 public function test_admin_bar_contains_view_archive_link() { 387 register_post_type( 'test-archive-view', array( 388 'public' => true, 389 'has_archive' => true 390 ) ); 391 392 set_current_screen( 'edit-test-archive-view' ); 393 394 $wp_admin_bar = $this->get_standard_admin_bar(); 395 396 $node_view = $wp_admin_bar->get_node( 'view' ); 397 $this->assertNotNull( $node_view ); 398 } 399 383 400 }