MantisBT: master-2.26 37930c92

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2023-12-01 17:51 master-2.26 032000c6
Affected Issues  0033374: Erratic behavior of RestProjectVersionTest::testProjectUpdateVersion PHPUnit test case
Changeset

Fix testProjectUpdateVersion()

The assertion to test the version update (PATCH request) was incorrectly
setting the timestamp in the updated version data as a Unix timestamp
instead of a date string to be parsed by strtotime().

Depending on the current time, the timestamp is sometimes converted by
the strtotime() call in VersionUpdateCommand to a date that is not
supported by the database which causes the SQL UPDATE statement in
version_update() to fail.

Fixes 0033374

mod - tests/rest/RestProjectVersionTest.php Diff File