Make WordPress Core


Ignore:
Timestamp:
07/11/2021 12:41:48 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Use more appropriate assertions in various tests.

This replaces instances of assertTrue( empty( ... ) ) with assertEmpty() to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397].

See #53363.

File:
1 edited

Legend:

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

    r51397 r51403  
    289289
    290290                $root_uri = get_theme_root_uri();
    291                 $this->assertTrue( ! empty( $root_uri ) );
     291                $this->assertNotEmpty( $root_uri );
    292292
    293293                $this->assertSame( $root_fs . '/' . get_stylesheet(), get_stylesheet_directory() );
Note: See TracChangeset for help on using the changeset viewer.