This commit is contained in:
Mathieu Jaumotte 2023-09-26 12:04:59 +02:00
parent baeccf0970
commit 2d4d1eda50
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class UserTest extends TestCase
self::assertNotNull( self::assertNotNull(
$user $user
->getMainScopeHistories() ->getMainScopeHistories()
->filter(fn (User\UserScopeHistory $userScopeHistory) => $userScopeHistory->getScope() === $scopeA ) ->filter(fn (User\UserScopeHistory $userScopeHistory) => $userScopeHistory->getScope() === $scopeA)
->first()->getEndDate() ->first()->getEndDate()
); );
@ -63,7 +63,7 @@ class UserTest extends TestCase
self::assertNotNull( self::assertNotNull(
$user $user
->getUserJobHistories() ->getUserJobHistories()
->filter(fn(User\UserJobHistory $userJobHistory) => $userJobHistory->getJob() === $jobA ) ->filter(fn (User\UserJobHistory $userJobHistory) => $userJobHistory->getJob() === $jobA)
->first()->getEndDate() ->first()->getEndDate()
); );
} }