fix tests

This commit is contained in:
Yuri Kuznetsov
2021-11-09 17:20:24 +02:00
parent 4e1f421dc1
commit 7499703d77
4 changed files with 4 additions and 6 deletions
@@ -134,7 +134,6 @@ class FilterResolverTest extends \PHPUnit\Framework\TestCase
if (!$isPortal) {
$this->resolver = new DefaultFilterResolver(
$this->entityType,
$this->user,
$acl
);
}
@@ -142,7 +141,6 @@ class FilterResolverTest extends \PHPUnit\Framework\TestCase
if ($isPortal) {
$this->resolver = new DefaultPortalFilterResolver(
$this->entityType,
$this->user,
$acl
);
}
@@ -52,6 +52,10 @@ class FiltersTest extends \PHPUnit\Framework\TestCase
$this->user->id = 'user-id';
$this->user
->method('getId')
->willReturn('user-id');
$this->entityType = 'Test';
$this->user
@@ -521,7 +525,6 @@ class FiltersTest extends \PHPUnit\Framework\TestCase
protected function createFilter(string $className) : AccessControlFilter
{
return new $className(
$this->entityType,
$this->user,
$this->fieldHelper
);
@@ -45,7 +45,6 @@ use Espo\Core\{
use Espo\{
ORM\Query\SelectBuilder as QueryBuilder,
ORM\Query\Part\WhereClause,
ORM\Query\Part\Where\OrGroup,
ORM\Entity,
Entities\User,
@@ -68,7 +67,6 @@ class TextFilterApplierTest extends \PHPUnit\Framework\TestCase
$this->applier = new TextFilterApplier(
$this->entityType,
$this->user,
$this->config,
$this->metadataProvider,
$this->fullTextSearchDataComposerFactory,
$this->filterFactory
@@ -100,7 +100,6 @@ class LanguageTest extends \PHPUnit\Framework\TestCase
$this->object = new Language(
null,
$this->fileManager,
$this->metadata,
$reader,
$this->dataCache,
false