Changeset 48937 for trunk/tests/phpunit/tests/functions/wpGetArchives.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/wpGetArchives.php
r47780 r48937 32 32 function test_wp_get_archives_default() { 33 33 $expected['default'] = "<li><a href='" . $this->month_url . "'>" . gmdate( 'F Y' ) . '</a></li>'; 34 $this->assert Equals( $expected['default'], trim( wp_get_archives( array( 'echo' => false ) ) ) );34 $this->assertSame( $expected['default'], trim( wp_get_archives( array( 'echo' => false ) ) ) ); 35 35 } 36 36 37 37 function test_wp_get_archives_type() { 38 38 $expected['type'] = "<li><a href='" . $this->year_url . "'>" . gmdate( 'Y' ) . '</a></li>'; 39 $this->assert Equals(39 $this->assertSame( 40 40 $expected['type'], 41 41 trim( … … 72 72 <li><a href='$link5'>$title5</a></li> 73 73 EOF; 74 $this->assert EqualsIgnoreEOL(74 $this->assertSameIgnoreEOL( 75 75 $expected['limit'], 76 76 trim( … … 88 88 function test_wp_get_archives_format() { 89 89 $expected['format'] = "<option value='" . $this->month_url . "'> " . gmdate( 'F Y' ) . ' </option>'; 90 $this->assert Equals(90 $this->assertSame( 91 91 $expected['format'], 92 92 trim( … … 103 103 function test_wp_get_archives_before_and_after() { 104 104 $expected['before_and_after'] = "<div><a href='" . $this->month_url . "'>" . gmdate( 'F Y' ) . '</a></div>'; 105 $this->assert Equals(105 $this->assertSame( 106 106 $expected['before_and_after'], 107 107 trim( … … 120 120 function test_wp_get_archives_show_post_count() { 121 121 $expected['show_post_count'] = "<li><a href='" . $this->month_url . "'>" . gmdate( 'F Y' ) . '</a> (8)</li>'; 122 $this->assert Equals(122 $this->assertSame( 123 123 $expected['show_post_count'], 124 124 trim( … … 154 154 <li><a href='{$this->month_url}'>$date_full</a></li> 155 155 EOF; 156 $this->assert EqualsIgnoreEOL(156 $this->assertSameIgnoreEOL( 157 157 $expected['order_asc'], 158 158 trim( … … 170 170 <li><a href='{$oct_url}'>October 2012</a></li> 171 171 EOF; 172 $this->assert EqualsIgnoreEOL(172 $this->assertSameIgnoreEOL( 173 173 $expected['order_desc'], 174 174 trim( … … 205 205 ) 206 206 ); 207 $this->assert Equals( $expected, trim( $archives ) );207 $this->assertSame( $expected, trim( $archives ) ); 208 208 } 209 209 }
Note: See TracChangeset
for help on using the changeset viewer.