From 1238b8ff0957f9230fd5b651042e4e726dadfd5d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 27 Sep 2023 21:42:23 +0000 Subject: [PATCH] fix tests --- tests/Controller/ApiControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Controller/ApiControllerTest.php b/tests/Controller/ApiControllerTest.php index 8b004c6..e6f89e3 100755 --- a/tests/Controller/ApiControllerTest.php +++ b/tests/Controller/ApiControllerTest.php @@ -104,7 +104,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase */ public function testApiSessionCR() : void { - if (($profile = ProfileMapper::get()->where('account', 1)->execute())->id === 0) { + if (($profile = ProfileMapper::get()->where('account', 1)->limit(1)->execute())->id === 0) { $profile = new Profile(); $profile->account = AccountMapper::get()->where('id', 1)->execute(); @@ -113,7 +113,7 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase ProfileMapper::create()->execute($profile); } - if ((EmployeeMapper::get()->with('profile')->where('profile/account', 1)->execute())->id === 0) { + if ((EmployeeMapper::get()->with('profile')->where('profile/account', 1)->limit(1)->execute())->id === 0) { $employee = new Employee($profile); EmployeeMapper::create()->execute($employee); }