[wp-trac] [WordPress Trac] #28738: Plugin tests don't work anymore
WordPress Trac
noreply at wordpress.org
Thu Jul 3 18:03:10 UTC 2014
#28738: Plugin tests don't work anymore
--------------------------+-----------------------------
Reporter: ziodave | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I cannot run anymore plugin tests using:
* bash bin/install-wp-tests.sh wordpress_test root '' localhost latest
* phpunit
I get the following issue:
{{{
Running as single site... To run multisite, use -c
tests/phpunit/multisite.xml
PHP Warning: Cannot modify header information - headers already sent by
(output started at /private/tmp/wordpress-tests-
lib/includes/bootstrap.php:61) in /private/tmp/wordpress/wp-
includes/pluggable.php on line 1121
PHP Stack trace:
PHP 1. {main}()
/usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar:0
PHP 2. PHPUnit_TextUI_Command::main()
/usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar:614
PHP 3. PHPUnit_TextUI_Command->run()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:129
PHP 4. PHPUnit_TextUI_Command->handleArguments()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:138
PHP 5. PHPUnit_TextUI_Command->handleBootstrap()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:606
PHP 6. PHPUnit_Util_Fileloader::checkAndLoad()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:778
PHP 7. PHPUnit_Util_Fileloader::load()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/Util/Fileloader.php:76
PHP 8. include_once()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/Util/Fileloader.php:92
PHP 9. require() /Users/david/Developer/wordpress/wp-cli/wp-
content/plugins/my-plugin/tests/bootstrap.php:13
PHP 10. require_once() /private/tmp/wordpress-tests-
lib/includes/bootstrap.php:85
PHP 11. wp_not_installed() /private/tmp/wordpress/wp-settings.php:109
PHP 12. wp_redirect() /private/tmp/wordpress/wp-includes/load.php:447
PHP 13. header() /private/tmp/wordpress/wp-includes/pluggable.php:1121
Warning: Cannot modify header information - headers already sent by
(output started at /private/tmp/wordpress-tests-
lib/includes/bootstrap.php:61) in /private/tmp/wordpress/wp-
includes/pluggable.php on line 1121
Call Stack:
0.0175 525024 1. {main}()
/usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar:0
0.0188 736872 2. PHPUnit_TextUI_Command::main()
/usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar:614
0.0188 737104 3. PHPUnit_TextUI_Command->run()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:129
0.0188 737536 4. PHPUnit_TextUI_Command->handleArguments()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:138
0.0209 1090048 5. PHPUnit_TextUI_Command->handleBootstrap()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:606
0.0210 1098592 6. PHPUnit_Util_Fileloader::checkAndLoad()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/TextUI/Command.php:778
0.0210 1098816 7. PHPUnit_Util_Fileloader::load()
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/Util/Fileloader.php:76
0.0211 1103040 8. include_once('/Users/david/Developer/wordpress
/wp-cli/wp-content/plugins/my-plugin/tests/bootstrap.php')
phar:///usr/local/Cellar/phpunit/3.7.28/libexec/phpunit-3.7.28.phar/phpunit/Util/Fileloader.php:92
0.0215 1167200 9. require('/private/tmp/wordpress-tests-
lib/includes/bootstrap.php') /Users/david/Developer/wordpress/wp-cli/wp-
content/plugins/my-plugin/tests/bootstrap.php:13
0.1498 1881776 10. require_once('/private/tmp/wordpress/wp-
settings.php') /private/tmp/wordpress-tests-lib/includes/bootstrap.php:85
0.1637 4138264 11. wp_not_installed() /private/tmp/wordpress/wp-
settings.php:109
0.1941 5599752 12. wp_redirect() /private/tmp/wordpress/wp-
includes/load.php:447
0.1943 5608920 13. header() /private/tmp/wordpress/wp-
includes/pluggable.php:1121
}}}
I've been able to track down the issue in this revision:
{{{
r28965 | wonderboymusic | 2014-07-03 04:16:33 +0300 (Thu, 03 Jul 2014) | 4
lines
Transient timeouts are untestable when `WP_INSTALLING` is defined and set
to ANY value. Transient timeouts cannot be tested during multisite runs
because `wpmu_create_blog()` sets `WP_INSTALLING`. I have zero idea how
these tests ever passed.
See #28706.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28738>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list