Changeset 872 in tests
- Timestamp:
- 07/03/2012 02:26:14 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootstrap.php
r839 r872 24 24 25 25 define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/wp-testdata' ); 26 27 if ( ! defined( 'WP_TESTS_FORCE_KNOWN_BUGS' ) ) 28 define( 'WP_TESTS_FORCE_KNOWN_BUGS', false ); 29 30 // Cron tries to make an HTTP request to the blog, which always fails, because tests are run in CLI mode only 31 define( 'DISABLE_WP_CRON', true ); 26 32 27 33 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1'; -
trunk/wp-config-sample.php
r841 r872 4 4 define( 'ABSPATH', dirname( __FILE__ ) . '/wordpress/' ); 5 5 6 // Test with multisite enabled: (previously -m) 7 // define( 'WP_TESTS_MULTISITE', true ); 8 9 // Force known bugs: (previously -f) 10 // define( 'WP_TESTS_FORCE_KNOWN_BUGS', true ); 11 12 // Test with WordPress debug mode on (previously -d) 13 // define( 'WP_DEBUG', true ); 14 6 15 // ** MySQL settings ** // 7 16 8 // these will be used by the copy of wordpress being tested.17 // This configuration file will be used by the copy of WordPress being tested. 9 18 // wordpress/wp-config.php will be ignored. 10 19 … … 33 42 define( 'WP_TESTS_TITLE', 'Test Blog' ); 34 43 35 define( 'WP_TESTS_MULTISITE', false );36 37 /* Cron tries to make an HTTP request to the blog, which always fails, because tests are run in CLI mode only */38 define( 'DISABLE_WP_CRON', true );39 40 44 $table_prefix = 'wp_'; 41 45 -
trunk/wp-testlib/testcase.php
r870 r872 123 123 */ 124 124 function knownWPBug( $ticket_id ) { 125 if ( ! TracTickets::isTracTicketClosed( 'http://core.trac.wordpress.org', $ticket_id ) ) {125 if ( ! WP_TESTS_FORCE_KNOWN_BUGS && ! TracTickets::isTracTicketClosed( 'http://core.trac.wordpress.org', $ticket_id ) ) { 126 126 $this->markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) ); 127 127 } … … 132 132 */ 133 133 function knownUTBug( $ticket_id ) { 134 if ( ! TracTickets::isTracTicketClosed( 'http://unit-tests.trac.wordpress.org', $ticket_id ) ) {134 if ( ! WP_TESTS_FORCE_KNOWN_BUGS && ! TracTickets::isTracTicketClosed( 'http://unit-tests.trac.wordpress.org', $ticket_id ) ) { 135 135 $this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) ); 136 136 } … … 141 141 */ 142 142 function knownPluginBug( $ticket_id ) { 143 if ( ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) {143 if ( ! WP_TESTS_FORCE_KNOWN_BUGS && ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) { 144 144 $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) ); 145 145 }
Note: See TracChangeset
for help on using the changeset viewer.