Changeset 42343 for trunk/tests/phpunit/tests/includes/helpers.php
 Timestamp:
 11/30/2017 11:09:33 PM (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/tests/phpunit/tests/includes/helpers.php
r38678 r42343 13 13 array( 1, 2, 3 ), // test expected 14 14 array( 1, 2, 3 ), // test actual 15 false // exception expected15 false, // exception expected 16 16 ), 17 17 array( 18 18 array( 1, 2, 3 ), 19 19 array( 2, 3, 1 ), 20 false 21 ), 22 array( 23 array( 1, 2, 3 ), 24 array( 1, 2, 3, 4 ), 25 true 26 ), 27 array( 28 array( 1, 2, 3, 4 ), 29 array( 1, 2, 3 ), 30 true 20 false, 21 ), 22 array( 23 array( 1, 2, 3 ), 24 array( 1, 2, 3, 4 ), 25 true, 26 ), 27 array( 28 array( 1, 2, 3, 4 ), 29 array( 1, 2, 3 ), 30 true, 31 31 ), 32 32 array( 33 33 array( 1, 2, 3 ), 34 34 array( 3, 4, 2, 1 ), 35 true 35 true, 36 36 ), 37 37 array( 38 38 array( 1, 2, 3 ), 39 39 array( 1, 2, 3, 3 ), 40 true 40 true, 41 41 ), 42 42 array( 43 43 array( 1, 2, 3 ), 44 44 array( 2, 3, 1, 3 ), 45 true 45 true, 46 46 ), 47 47 ); … … 74 74 array( 1, 2, 3 ), // test expected 75 75 array( 1, 2, 3 ), // test actual 76 false // exception expected 77 ), 78 array( 79 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 80 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 81 false 76 false, // exception expected 77 ), 78 array( 79 array( 80 'a' => 1, 81 'b' => 2, 82 'c' => 3, 83 ), 84 array( 85 'a' => 1, 86 'b' => 2, 87 'c' => 3, 88 ), 89 false, 82 90 ), 83 91 array( 84 92 array( 1, 2, 3 ), 85 93 array( 2, 3, 1 ), 86 true 87 ), 88 array( 89 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 90 array( 'b' => 2, 'c' => 3, 'a' => 1 ), 91 false 92 ), 93 array( 94 array( 1, 2, 3 ), 95 array( 1, 2, 3, 4 ), 96 true 97 ), 98 array( 99 array( 1, 2, 3, 4 ), 100 array( 1, 2, 3 ), 101 true 102 ), 103 array( 104 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 105 array( 'a' => 1, 'b' => 2, 'c' => 3, 'd' => 4 ), 106 true 107 ), 108 array( 109 array( 'a' => 1, 'b' => 2, 'c' => 3, 'd' => 4 ), 110 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 111 true 94 true, 95 ), 96 array( 97 array( 98 'a' => 1, 99 'b' => 2, 100 'c' => 3, 101 ), 102 array( 103 'b' => 2, 104 'c' => 3, 105 'a' => 1, 106 ), 107 false, 108 ), 109 array( 110 array( 1, 2, 3 ), 111 array( 1, 2, 3, 4 ), 112 true, 113 ), 114 array( 115 array( 1, 2, 3, 4 ), 116 array( 1, 2, 3 ), 117 true, 118 ), 119 array( 120 array( 121 'a' => 1, 122 'b' => 2, 123 'c' => 3, 124 ), 125 array( 126 'a' => 1, 127 'b' => 2, 128 'c' => 3, 129 'd' => 4, 130 ), 131 true, 132 ), 133 array( 134 array( 135 'a' => 1, 136 'b' => 2, 137 'c' => 3, 138 'd' => 4, 139 ), 140 array( 141 'a' => 1, 142 'b' => 2, 143 'c' => 3, 144 ), 145 true, 112 146 ), 113 147 array( 114 148 array( 1, 2, 3 ), 115 149 array( 3, 4, 2, 1 ), 116 true 117 ), 118 array( 119 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 120 array( 'c' => 3, 'b' => 2, 'd' => 4, 'a' => 1 ), 121 true 150 true, 151 ), 152 array( 153 array( 154 'a' => 1, 155 'b' => 2, 156 'c' => 3, 157 ), 158 array( 159 'c' => 3, 160 'b' => 2, 161 'd' => 4, 162 'a' => 1, 163 ), 164 true, 122 165 ), 123 166 array( 124 167 array( 1, 2, 3 ), 125 168 array( 1, 2, 3, 3 ), 126 true 127 ), 128 array( 129 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 130 array( 'a' => 1, 'b' => 2, 'c' => 3, 'd' => 3 ), 131 true 169 true, 170 ), 171 array( 172 array( 173 'a' => 1, 174 'b' => 2, 175 'c' => 3, 176 ), 177 array( 178 'a' => 1, 179 'b' => 2, 180 'c' => 3, 181 'd' => 3, 182 ), 183 true, 132 184 ), 133 185 array( 134 186 array( 1, 2, 3 ), 135 187 array( 2, 3, 1, 3 ), 136 true 137 ), 138 array( 139 array( 'a' => 1, 'b' => 2, 'c' => 3 ), 140 array( 'c' => 3, 'b' => 2, 'd' => 3, 'a' => 1 ), 141 true 188 true, 189 ), 190 array( 191 array( 192 'a' => 1, 193 'b' => 2, 194 'c' => 3, 195 ), 196 array( 197 'c' => 3, 198 'b' => 2, 199 'd' => 3, 200 'a' => 1, 201 ), 202 true, 142 203 ), 143 204 ); … … 220 281 */ 221 282 public function test_setup_postdata_globals_should_be_reset_on_teardown__setup() { 222 $post = self::factory()>post>create_and_get();283 $post = self::factory()>post>create_and_get(); 223 284 $GLOBALS['wp_query'] = new WP_Query(); 224 285 $GLOBALS['wp_query']>setup_postdata( $post );
Note: See TracChangeset
for help on using the changeset viewer.