- Issue created by @elc
- Status changed to Needs work
10 months ago 5:28am 25 January 2024 - 🇦🇺Australia elc
Pushed CASResponseCookies event subscriber to 2.0.x branch prior to this to get tests working without cookie errors.
@see https://git.drupalcode.org/project/cas_server/-/commits/2.0.x?ref_type=h...
GitLabCI is showing errors. Did not encounter errors running offline. Here are the errors.
There were 3 failures:
1) Drupal\Tests\cas_server\Functional\UserActionControllerTest::testLogout
Failed asserting that a NULL is not empty.
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/builds/project/cas_server/tests/src/Functional/UserActionControllerTest.php:123
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
2) Drupal\Tests\cas_server\Functional\UserLoginFormTest::testCorrectNoServiceWithTicketGrantingCookie
Failed asserting that a NULL is not empty.
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/builds/project/cas_server/tests/src/Functional/UserLoginFormTest.php:158
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
3) Drupal\Tests\cas_server\Functional\UserLoginFormTest::testCorrectWithService
Failed asserting that a NULL is not empty.
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:121
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php:55
/builds/project/cas_server/tests/src/Functional/UserLoginFormTest.php:208
/builds/project/cas_server/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
FAILURES!
Tests: 40, Assertions: 283, Failures: 3. - Status changed to Fixed
10 months ago 4:27am 27 January 2024 - 🇦🇺Australia elc
Bug discovered from unit testing: cas server site could not be in a sub-directory as the cookie path did not include the base path. Fix by setting cookie path using
Url::fromUri('internal:/cas')->toString()
.Have forked off 2.1.x branch which supports only D10 and D11, using PHP8.
Automatically closed - issue fixed for 2 weeks with no activity.