Fix LingotekApiUnitTest failures.
See https://www.drupal.org/pift-ci-job/517172:
1) Drupal\Tests\lingotek\Unit\Remote\LingotekApiUnitTest::testGetProjects
Drupal\lingotek\Exception\LingotekApiException: Failed to get projects: Expectation failed for method name is equal to when invoked 1 time(s)
Parameter 1 for invocation Drupal\lingotek\Remote\LingotekHttpInterface::get('/api/project', Array (...)) does not match expected value.
Failed asserting that two arrays are equal./var/www/html/modules/lingotek/src/Remote/LingotekApi.php:218
/var/www/html/modules/lingotek/tests/src/Unit/Remote/LingotekApiUnitTest.php:1452) Drupal\Tests\lingotek\Unit\Remote\LingotekApiUnitTest::testGetWorkflows
Drupal\lingotek\Exception\LingotekApiException: Failed to get workflows: Expectation failed for method name is equal to when invoked 1 time(s)
Parameter 1 for invocation Drupal\lingotek\Remote\LingotekHttpInterface::get('/api/workflow', Array (...)) does not match expected value.
Failed asserting that two arrays are equal./var/www/html/modules/lingotek/src/Remote/LingotekApi.php:253
/var/www/html/modules/lingotek/tests/src/Unit/Remote/LingotekApiUnitTest.php:178FAILURES!
Tests: 8, Assertions: 9, Errors: 2.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | fix_lingotekapiunittest-2822953-14.patch | 1.07 KB | penyaskito |
Comments
Comment #2
penyaskitoTesting appending $this->root as suggested by @tim.plunkett on IRC. Thanks also to @neclimdul and @mixologic for helping debugging those failures.
Comment #3
penyaskitoComment #4
penyaskitoReuploading, accidentally disabled patch testing settings in the project.
Comment #5
penyaskitoComment #8
penyaskitoComment #10
penyaskitoNew try?
Comment #12
penyaskitoOh, actually I missed a commit in HEAD.
Comment #14
penyaskitoProper patch.
Comment #15
penyaskitoFinally discovered that was a commit in HEAD increasing the limits on the API calls.
Comment #17
penyaskitoCommitted 2756a46 and pushed to 8.x-1.x. Thanks!