Make WordPress Core

Changeset 56227

Timestamp:
07/13/2023 12:39:42 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Tests: Add tests to ensure the contribute Toolbar node is added when appropriate.

Follow-up to [56220].

Props costdev.
See #23348.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/adminbar.php

    r55580 r56227  
    470470     */
    471471    public function test_admin_bar_contains_correct_about_link_for_users_with_no_role_in_multisite() {
    472         // User is not a member of a site.
     472        // User is not a member of site.
    473473        remove_user_from_blog( self::$no_role_id, get_current_blog_id() );
    474474
     
    483483        $this->assertArrayNotHasKey( 'tabindex', $wp_logo_node->meta );
    484484        $this->assertNotNull( $about_node );
     485
     486
     487
     488
     489
     490
     491
     492
     493
     494
     495
     496
     497
     498
     499
     500
     501
     502
     503
     504
     505
     506
     507
     508
     509
     510
     511
     512
     513
     514
     515
     516
     517
     518
     519
     520
     521
     522
     523
     524
     525
     526
     527
     528
     529
     530
     531
     532
     533
     534
     535
     536
     537
     538
     539
    485540    }
    486541
Note: See TracChangeset for help on using the changeset viewer.