The tests were failing because User::role() depends on Auth::user() and currentTeam() session being set. Added actingAs() and session setup to each test to properly authenticate users before checking permissions. This fixes the 'Attempt to read property "teams" on null' errors. |
||
|---|---|---|
| .. | ||
| CloudInitScriptTest.php | ||
| ConvertArraysTest.php | ||
| ConvertContainerEnvsToArray.php | ||
| ConvertingGitUrlsTest.php | ||
| DatabaseBackupJobTest.php | ||
| DockerCustomCommandsTest.php | ||
| ExecuteContainerCommandTest.php | ||
| HetznerServerCreationTest.php | ||
| IpAllowlistTest.php | ||
| MultilineEnvironmentVariableTest.php | ||
| TeamInvitationEmailNormalizationTest.php | ||
| TeamInvitationPrivilegeEscalationTest.php | ||
| TeamPolicyTest.php | ||
| Utf8HandlingTest.php | ||