Changeset 48937 for trunk/tests/phpunit/tests/hooks/addFilter.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/hooks/addFilter.php
r46586 r48937 21 21 22 22 $function_index = _wp_filter_build_unique_id( $tag, $callback, $priority ); 23 $this->assert Equals( $callback, $hook->callbacks[ $priority ][ $function_index ]['function'] );24 $this->assert Equals( $accepted_args, $hook->callbacks[ $priority ][ $function_index ]['accepted_args'] );23 $this->assertSame( $callback, $hook->callbacks[ $priority ][ $function_index ]['function'] ); 24 $this->assertSame( $accepted_args, $hook->callbacks[ $priority ][ $function_index ]['accepted_args'] ); 25 25 } 26 26 … … 36 36 37 37 $function_index = _wp_filter_build_unique_id( $tag, $callback, $priority ); 38 $this->assert Equals( $callback, $hook->callbacks[ $priority ][ $function_index ]['function'] );39 $this->assert Equals( $accepted_args, $hook->callbacks[ $priority ][ $function_index ]['accepted_args'] );38 $this->assertSame( $callback, $hook->callbacks[ $priority ][ $function_index ]['function'] ); 39 $this->assertSame( $accepted_args, $hook->callbacks[ $priority ][ $function_index ]['accepted_args'] ); 40 40 } 41 41 … … 50 50 51 51 $function_index = _wp_filter_build_unique_id( $tag, $callback, $priority ); 52 $this->assert Equals( $callback, $hook->callbacks[ $priority ][ $function_index ]['function'] );53 $this->assert Equals( $accepted_args, $hook->callbacks[ $priority ][ $function_index ]['accepted_args'] );52 $this->assertSame( $callback, $hook->callbacks[ $priority ][ $function_index ]['function'] ); 53 $this->assertSame( $accepted_args, $hook->callbacks[ $priority ][ $function_index ]['accepted_args'] ); 54 54 } 55 55 … … 125 125 $hook->add_filter( $tag, array( $c, 'action' ), 8, 1 ); 126 126 127 $this->assert Equals( array( 5, 8, 10 ), array_keys( $hook->callbacks ) );127 $this->assertSame( array( 5, 8, 10 ), array_keys( $hook->callbacks ) ); 128 128 } 129 129
Note: See TracChangeset
for help on using the changeset viewer.