Changeset 50283 for trunk/tests/phpunit/includes/testcase-canonical.php
- Timestamp:
- 02/10/2021 01:23:42 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-canonical.php
r49603 r50283 309 309 // Just test the path and query if present. 310 310 if ( isset( $expected['url'] ) ) { 311 $this->assert Equals( $expected['url'], $parsed_can_url['path'] . ( ! empty( $parsed_can_url['query'] ) ? '?' . $parsed_can_url['query'] : '' ), $ticket_ref );311 $this->assertSame( $expected['url'], $parsed_can_url['path'] . ( ! empty( $parsed_can_url['query'] ) ? '?' . $parsed_can_url['query'] : '' ), $ticket_ref ); 312 312 } 313 313 … … 329 329 // $_qv should not contain any elements which are set in $query_vars already 330 330 // (i.e. $_GET vars should not be present in the Rewrite). 331 $this->assert Equals( array(), array_intersect( $query_vars, $_qv ), 'Query vars are duplicated from the Rewrite into $_GET; ' . $ticket_ref );331 $this->assertSame( array(), array_intersect( $query_vars, $_qv ), 'Query vars are duplicated from the Rewrite into $_GET; ' . $ticket_ref ); 332 332 333 333 $query_vars = array_merge( $query_vars, $_qv );
Note: See TracChangeset
for help on using the changeset viewer.