Closed (fixed)
Project:
Scheduler
Version:
8.x-1.x-dev
Component:
Testing
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 May 2020 at 08:26 UTC
Updated:
17 May 2020 at 10:24 UTC
Jump to comment: Most recent
In #2913829: Conflict between allowing default time and requiring the scheduled date I added javascript tests for the new functionality. The new files are in this commit
However, this means that our Travis testing on PHP5.6 fails with
PHPUnit_Framework_Exception: Fatal error: Call to a member function execute() on null in /home/travis/build/jonathan1055/drupal/vendor/behat/mink-selenium2-driver/src/Selenium2Driver.php on line 956
Caused by:
exception 'ErrorException' with message 'unserialize(): Error at offset 0 of 171 bytes' in /home/travis/build/jonathan1055/drupal/vendor/phpunit/phpunit/src/Util/PHP.php:114
Comments
Comment #2
jonathan1055 commentedThe test builds complete OK at PHP7+ (but the javascript tests are skipped). We have javascript test coverage on drupal.org so this is good. We can skip the test at PHP5.6 on Travis, to give a clean run. Having continual red test failure for every job will obscure any new test fault.
We cannot use the php code
because in this situation the test has already crashed before it gets to do that. However, we can filter out the javascript test at command time
Comment #4
jonathan1055 commentedWe now get green 'all tests passed' on Travis tests.