stable

Clone or download

Read-only

Fix failing tests on PermissionCheckerTest

When you run the tests for the whole Tracker_Permission_PermissionCheckerTest, everything is awesome 🎵 However one specific test in it does not pass if you run it independantly: \Tracker_Permission_PermissionCheckerTest::testTrackerInNotActiveProjectIsOnlyReadableBySuperAdmin() It is due to the static caching in plugins/tracker/include/Tracker/Tracker.class.php:2079. Since the cache is shared between instances, in tests we can have trackers with same id, leading to weird behavior sometimes. 😿 Introduced by git #stable/tuleap/c08d386d6c4f75825d808ad83ff4f5c16a0ef89e Part of request #18330: Promotion of a tracker in +New dropdown is a project admin action Change-Id: I0ec62e86e3ea8bff1d7e316127f706a30df57c35

Modified Files

Name
M plugins/tracker/tests/unit/Tracker/Permission/PermissionCheckerTest.php +1 −0 Go to diff View file