diff --git a/tests/TestCase/Controller/UsersControllerTest.php b/tests/TestCase/Controller/UsersControllerTest.php index b3704e4e3..eaace4f48 100644 --- a/tests/TestCase/Controller/UsersControllerTest.php +++ b/tests/TestCase/Controller/UsersControllerTest.php @@ -192,11 +192,11 @@ public function testDeleteLastOrgaUserWithNonDeletedWorkshop() $this->get(Configure::read('AppConfig.htmlHelper')->urlUserWorkshopResign('user', $userUid, $ownerAndAssociatedWorkshopId)); // 3. successfully delete user - $user = $this->User->get($userUid, [ - 'contain' => [ + $user = $this->User->get($userUid, + contain: [ 'OwnerWorkshops', ] - ]); + ); $this->User->delete($user); // 4. check changed owner of workshops