From 3c119fe3e849655fca4efe4c39a2cc64fa204375 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 13 May 2021 16:39:51 +0300 Subject: [PATCH] fix test --- tests/integration/Espo/Account/SearchTest.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/Espo/Account/SearchTest.php b/tests/integration/Espo/Account/SearchTest.php index c2a679790e..4052dc5a52 100644 --- a/tests/integration/Espo/Account/SearchTest.php +++ b/tests/integration/Espo/Account/SearchTest.php @@ -29,11 +29,14 @@ namespace tests\integration\Espo\Account; +use Espo\Core\Select\SearchParams; + class SearchTest extends \tests\integration\Core\BaseTestCase { protected $dataFile = 'Account/ChangeFields.php'; protected $userName = 'admin'; + protected $password = '1'; public function testSearchByName() @@ -53,11 +56,11 @@ class SearchTest extends \tests\integration\Core\BaseTestCase 'sortBy' => 'name', ); - $result = $service->find($params); + $result = $service->find(SearchParams::fromRaw($params)); $this->assertEquals(1, $result->getTotal()); - $this->assertInstanceOf('\\Espo\\ORM\\EntityCollection', $result->getCollection()); + $this->assertInstanceOf('Espo\\ORM\\EntityCollection', $result->getCollection()); $list = $result->getCollection()->toArray();