mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
@@ -33,16 +33,16 @@ use Exception;
|
||||
use PHPUnit\Framework\Attributes\Group;
|
||||
use PHPUnit\Framework\Constraint\Callback;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use SP\DataModel\ItemSearchData;
|
||||
use SP\Domain\Account\Ports\AccountFilterBuilder;
|
||||
use SP\Domain\Client\Models\Client as ClientModel;
|
||||
use SP\Domain\Common\Models\Simple;
|
||||
use SP\Domain\Core\Dtos\ItemSearchDto;
|
||||
use SP\Domain\Core\Exceptions\ConstraintException;
|
||||
use SP\Domain\Core\Exceptions\QueryException;
|
||||
use SP\Domain\Core\Exceptions\SPException;
|
||||
use SP\Domain\Database\Ports\DatabaseInterface;
|
||||
use SP\Infrastructure\Client\Repositories\Client;
|
||||
use SP\Infrastructure\Common\Repositories\DuplicatedItemException;
|
||||
use SP\Infrastructure\Database\DatabaseInterface;
|
||||
use SP\Infrastructure\Database\QueryData;
|
||||
use SP\Infrastructure\Database\QueryResult;
|
||||
use SPT\Generators\ClientGenerator;
|
||||
@@ -236,7 +236,7 @@ class ClientTest extends UnitaryTestCase
|
||||
*/
|
||||
public function testSearch()
|
||||
{
|
||||
$item = new ItemSearchData(self::$faker->name);
|
||||
$item = new ItemSearchDto(self::$faker->name);
|
||||
|
||||
$callback = new Callback(
|
||||
static function (QueryData $arg) use ($item) {
|
||||
@@ -281,7 +281,7 @@ class ClientTest extends UnitaryTestCase
|
||||
->method('runQuery')
|
||||
->with($callback, true);
|
||||
|
||||
$this->client->search(new ItemSearchData());
|
||||
$this->client->search(new ItemSearchDto());
|
||||
}
|
||||
|
||||
public function testGetAll()
|
||||
|
||||
Reference in New Issue
Block a user