Changeset 51462 for trunk/tests/phpunit/tests/term/getTermLink.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/getTermLink.php
r50565 r51462 29 29 30 30 $actual = get_term_link( $term, 'wptests_tax' ); 31 $this->assert Contains( 'wptests_tax=foo', $actual );31 $this->assertStringContainsString( 'wptests_tax=foo', $actual ); 32 32 } 33 33 … … 49 49 50 50 $actual = get_term_link( $term, 'wptests_tax' ); 51 $this->assert Contains( 'wptests_tax=' . $term, $actual );51 $this->assertStringContainsString( 'wptests_tax=' . $term, $actual ); 52 52 } 53 53 … … 61 61 62 62 $actual = get_term_link( $c, 'category' ); 63 $this->assert Contains( 'cat=' . $c, $actual );63 $this->assertStringContainsString( 'cat=' . $c, $actual ); 64 64 } 65 65 … … 81 81 82 82 $actual = get_term_link( $t, 'wptests_tax2' ); 83 $this->assert Contains( 'foo=bar', $actual );83 $this->assertStringContainsString( 'foo=bar', $actual ); 84 84 } 85 85 … … 101 101 102 102 $actual = get_term_link( $t, 'wptests_tax2' ); 103 $this->assert Contains( 'taxonomy=wptests_tax2', $actual );104 $this->assert Contains( 'term=bar', $actual );103 $this->assertStringContainsString( 'taxonomy=wptests_tax2', $actual ); 104 $this->assertStringContainsString( 'term=bar', $actual ); 105 105 } 106 106 … … 132 132 remove_permastruct( 'wptests_tax2' ); 133 133 134 $this->assert Contains( '/foo/bar/', $actual );134 $this->assertStringContainsString( '/foo/bar/', $actual ); 135 135 } 136 136 … … 169 169 $actual = get_term_link( $t2, 'wptests_tax2' ); 170 170 171 $this->assert Contains( '/foo/term1/term2/', $actual );171 $this->assertStringContainsString( '/foo/term1/term2/', $actual ); 172 172 } 173 173 … … 206 206 $actual = get_term_link( $t2, 'wptests_tax2' ); 207 207 208 $this->assert Contains( '/foo/term2/', $actual );208 $this->assertStringContainsString( '/foo/term2/', $actual ); 209 209 } 210 210 }
Note: See TracChangeset
for help on using the changeset viewer.