Commit Graph

6 Commits

Author SHA1 Message Date
Joe Nahmias 6ca3bb6fec test: replace usage of at() matcher with alternatives
The PHPUnit at() matcher, used to determine the order that methods are called
on test doubles, has been deprecated in PHPUnit 9 and has been removed in
PHPUnit 10.
Migrate usage of at() to other constructs following Drupal core examples in:
<https://www.drupal.org/node/3218874>
2023-06-29 21:06:04 -07:00
mundry 59a4c7f73b
Duplicate attachments & external links during task duplication & importing 2023-03-24 19:48:32 -07:00
Christoph Reiter 0b8a270bbb tests: port assertEquals() with delta to assertEqualsWithDelta()
assertEquals() in phpunit 9.5 no longer takes a delta parameter
and has assertEqualsWithDelta() as a replacement. This means
float get compared without a delta atm, and a recent phpunit
release (9.5.25) has made float comparisons stricter resulting in
test suite errors such as:

1) SubtaskTimeTrackingModelTest::testCalculateSubtaskTime
Total spent
Failed asserting that 3.3000000000000003 matches expected 3.3.
tests/units/Model/SubtaskTimeTrackingModelTest.php:186

This replaces all assertEquals() calls that pass a delta value
with assertEqualsWithDelta().
2022-10-10 18:57:22 -07:00
Frédéric Guillot f68996b9c7 Remove assertion to avoid flaky test 2022-09-16 18:08:32 -07:00
Frédéric Guillot ccd177ada6 Store PHP sessions in the database 2017-12-12 15:04:28 -08:00
Frederic Guillot 4a230d331e
Added application and project roles validation for API procedure calls 2016-06-26 10:25:13 -04:00