Changeset 54891 for trunk/tests/phpunit/tests/dependencies.php
- Timestamp:
- 11/29/2022 03:49:49 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies.php
r52338 r54891 6 6 class Tests_Dependencies extends WP_UnitTestCase { 7 7 public function test_add() { 8 $dep = new WP_Dependencies ;8 $dep = new WP_Dependencies(); 9 9 10 10 $this->assertTrue( $dep->add( 'one', '' ) ); … … 19 19 20 20 public function test_remove() { 21 $dep = new WP_Dependencies ;21 $dep = new WP_Dependencies(); 22 22 23 23 $this->assertTrue( $dep->add( 'one', '' ) ); … … 32 32 33 33 public function test_enqueue() { 34 $dep = new WP_Dependencies ;34 $dep = new WP_Dependencies(); 35 35 36 36 $this->assertTrue( $dep->add( 'one', '' ) ); … … 48 48 49 49 public function test_dequeue() { 50 $dep = new WP_Dependencies ;50 $dep = new WP_Dependencies(); 51 51 52 52 $this->assertTrue( $dep->add( 'one', '' ) ); … … 68 68 69 69 public function test_enqueue_args() { 70 $dep = new WP_Dependencies ;70 $dep = new WP_Dependencies(); 71 71 72 72 $this->assertTrue( $dep->add( 'one', '' ) ); … … 86 86 87 87 public function test_dequeue_args() { 88 $dep = new WP_Dependencies ;88 $dep = new WP_Dependencies(); 89 89 90 90 $this->assertTrue( $dep->add( 'one', '' ) ); … … 113 113 */ 114 114 public function test_query_and_registered_enqueued() { 115 $dep = new WP_Dependencies ;115 $dep = new WP_Dependencies(); 116 116 117 117 $this->assertTrue( $dep->add( 'one', '' ) ); … … 139 139 140 140 function test_enqueue_before_register() { 141 $dep = new WP_Dependencies ;141 $dep = new WP_Dependencies(); 142 142 143 143 $this->assertArrayNotHasKey( 'one', $dep->registered );
Note: See TracChangeset
for help on using the changeset viewer.