Changeset 51397 for trunk/tests/phpunit/tests/hooks/removeFilter.php
- Timestamp:
- 07/10/2021 11:15:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/removeFilter.php
r50342 r51397 19 19 $hook->remove_filter( $tag, $callback, $priority ); 20 20 21 $this->assert False( isset( $hook->callbacks[ $priority ] ));21 $this->assertArrayNotHasKey( $priority, $hook->callbacks ); 22 22 } 23 23 … … 33 33 $hook->remove_filter( $tag, $callback, $priority ); 34 34 35 $this->assert False( isset( $hook->callbacks[ $priority ] ));35 $this->assertArrayNotHasKey( $priority, $hook->callbacks ); 36 36 } 37 37 … … 46 46 $hook->remove_filter( $tag, $callback, $priority ); 47 47 48 $this->assert False( isset( $hook->callbacks[ $priority ] ));48 $this->assertArrayNotHasKey( $priority, $hook->callbacks ); 49 49 } 50 50 … … 77 77 78 78 $hook->remove_filter( $tag, $callback_one, $priority ); 79 $this->assert False( isset( $hook->callbacks[ $priority ] ));79 $this->assertArrayNotHasKey( $priority, $hook->callbacks ); 80 80 $this->assertCount( 1, $hook->callbacks[ $priority + 1 ] ); 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.