Changeset 660 in tests
- Timestamp:
- 04/09/2012 09:22:50 PM (14 years ago)
- Files:
-
- 2 edited
-
wp-testcase/test_post_output.php (modified) (1 diff)
-
wp-testlib/base.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_post_output.php
r659 r660 132 132 class WPTestGalleryPost extends _WPDataset1 { 133 133 function setUp() { 134 $this->knownUTBug(30); 134 135 parent::setUp(); 135 136 global $wp_rewrite; -
wp-testlib/base.php
r625 r660 364 364 global $wpdb; 365 365 foreach ($lines as $line) { 366 if ( !trim($line) or preg_match('/^-- /', $line) ) 366 $line = trim( $line ); 367 if ( empty( $line ) || 0 === strpos( $line, '--' ) || 0 === strpos( $line, '/*' ) ) 367 368 continue; 368 369 $wpdb->query($line); … … 433 434 */ 434 435 function knownWPBug($ticket_id) { 435 if (!TEST_FORCE_KNOWN_BUGS && (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http:// trac.wordpress.org', $ticket_id))) {436 if (!TEST_FORCE_KNOWN_BUGS && (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://core.trac.wordpress.org', $ticket_id))) { 436 437 $this->markTestSkipped( sprintf('WordPress Ticket #%d is not fixed', $ticket_id) ); 438 } 439 } 440 441 /** 442 * Skips the current test if there is open WordPress ticket with id $ticket_id 443 */ 444 function knownUTBug($ticket_id) { 445 if (!TEST_FORCE_KNOWN_BUGS && (TEST_SKIP_KNOWN_BUGS || !$this->isTracTicketClosed('http://unit-tests.trac.wordpress.org', $ticket_id))) { 446 $this->markTestSkipped( sprintf('Unit Tests Ticket #%d is not fixed', $ticket_id) ); 437 447 } 438 448 }
Note: See TracChangeset
for help on using the changeset viewer.