Changeset 43571 for trunk/tests/phpunit/tests/functions/getArchives.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/getArchives.php
r42382 r43571 22 22 public static function wpSetUpBeforeClass( $factory ) { 23 23 self::$post_ids = $factory->post->create_many( 24 8, array( 24 8, 25 array( 25 26 'post_type' => 'post', 26 27 'post_author' => '1', … … 37 38 $expected['type'] = "<li><a href='" . $this->year_url . "'>" . date( 'Y' ) . '</a></li>'; 38 39 $this->assertEquals( 39 $expected['type'], trim( 40 $expected['type'], 41 trim( 40 42 wp_get_archives( 41 43 array( … … 71 73 EOF; 72 74 $this->assertEquals( 73 $expected['limit'], trim( 75 $expected['limit'], 76 trim( 74 77 wp_get_archives( 75 78 array( … … 86 89 $expected['format'] = "<option value='" . $this->month_url . "'> " . date( 'F Y' ) . ' </option>'; 87 90 $this->assertEquals( 88 $expected['format'], trim( 91 $expected['format'], 92 trim( 89 93 wp_get_archives( 90 94 array( … … 100 104 $expected['before_and_after'] = "<div><a href='" . $this->month_url . "'>" . date( 'F Y' ) . '</a></div>'; 101 105 $this->assertEquals( 102 $expected['before_and_after'], trim( 106 $expected['before_and_after'], 107 trim( 103 108 wp_get_archives( 104 109 array( … … 116 121 $expected['show_post_count'] = "<li><a href='" . $this->month_url . "'>" . date( 'F Y' ) . '</a> (8)</li>'; 117 122 $this->assertEquals( 118 $expected['show_post_count'], trim( 123 $expected['show_post_count'], 124 trim( 119 125 wp_get_archives( 120 126 array( … … 149 155 EOF; 150 156 $this->assertEquals( 151 $expected['order_asc'], trim( 157 $expected['order_asc'], 158 trim( 152 159 wp_get_archives( 153 160 array( … … 164 171 EOF; 165 172 $this->assertEquals( 166 $expected['order_desc'], trim( 173 $expected['order_desc'], 174 trim( 167 175 wp_get_archives( 168 176 array(
Note: See TracChangeset
for help on using the changeset viewer.