Make WordPress Core

Ticket #34113: 34113-unit-tests.diff

File 34113-unit-tests.diff, 692 bytes (added by akibjorklund, 9 years ago)
  • tests/phpunit/tests/adminbar.php

     
    380380                $this->assertNull( $node_edit );
    381381        }
    382382
     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
    383400}