Changeset 32727 for trunk/tests/phpunit/tests/post/template.php
- Timestamp:
- 06/12/2015 01:04:04 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/template.php
r31531 r32727 200 200 201 201 /** 202 * @ticket 30082 203 */ 204 public function test_wp_dropdown_pages_should_not_contain_class_attribute_when_no_class_is_passed() { 205 $p = $this->factory->post->create( array( 206 'post_type' => 'page', 207 'post_name' => 'foo', 208 ) ); 209 210 $found = wp_dropdown_pages( array( 211 'echo' => 0, 212 ) ); 213 214 $this->assertNotRegExp( '/<select[^>]+class=\'/', $found ); 215 } 216 217 /** 218 * @ticket 30082 219 */ 220 public function test_wp_dropdown_pages_should_obey_class_parameter() { 221 $p = $this->factory->post->create( array( 222 'post_type' => 'page', 223 'post_name' => 'foo', 224 ) ); 225 226 $found = wp_dropdown_pages( array( 227 'echo' => 0, 228 'class' => 'bar', 229 ) ); 230 231 $this->assertRegExp( '/<select[^>]+class=\'bar\'/', $found ); 232 } 233 234 /** 202 235 * @ticket 31389 203 236 */
Note: See TracChangeset
for help on using the changeset viewer.