MDL-47538 phpunit: fix invalid PHPUNIT_SEQUENCE_START constant

This commit is contained in:
Petr Skoda
2014-10-06 17:31:15 +13:00
parent 6597413d41
commit ddffa9d6d3
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -458,7 +458,7 @@ abstract class testing_util {
// To reduce the chance of the coding error, we start sequences at different values where possible.
// In a attempt to avoid tables with existing id's we start at a high number.
// Reset the value each time all database sequences are reset.
if (defined('PHPUNIT_SEQUENCE_START')) {
if (defined('PHPUNIT_SEQUENCE_START') and PHPUNIT_SEQUENCE_START) {
self::$sequencenextstartingid = PHPUNIT_SEQUENCE_START;
} else {
self::$sequencenextstartingid = 100000;