Changeset 52338 for trunk/tests/phpunit/tests/dependencies.php
- Timestamp:
- 12/07/2021 05:44:46 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies.php
r52010 r52338 137 137 138 138 } 139 140 function test_enqueue_before_register() { 141 $dep = new WP_Dependencies; 142 143 $this->assertArrayNotHasKey( 'one', $dep->registered ); 144 145 $dep->enqueue( 'one' ); 146 147 $this->assertNotContains( 'one', $dep->queue ); 148 149 $this->assertTrue( $dep->add( 'one', '' ) ); 150 151 $this->assertContains( 'one', $dep->queue ); 152 } 139 153 }
Note: See TracChangeset
for help on using the changeset viewer.