Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
martineiber authored and github-actions[bot] committed Nov 7, 2024
1 parent a4a3d3f commit d8aaf62
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Unit/DataIndex/Filter/FullTextFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
/**
* Pimcore
*
* This source file is available under following license:
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - Pimcore Commercial License (PCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license PCL
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
* @license http://www.pimcore.org/license GPLv3 and PCL
*/

namespace Pimcore\Bundle\StudioBackendBundle\Tests\Unit\DataIndex\Filter;

use Codeception\Stub\Expected;
use Codeception\Test\Unit;
use Pimcore\Bundle\StudioBackendBundle\DataIndex\Filter\FullTextFilter;
use Pimcore\Bundle\StudioBackendBundle\DataIndex\Query\AssetQueryInterface;
use Pimcore\Bundle\StudioBackendBundle\DataIndex\Query\QueryInterface;
use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidArgumentException;
use Pimcore\Bundle\StudioBackendBundle\MappedParameter\Filter\SimpleColumnFilter;
Expand All @@ -34,7 +36,6 @@ public function testIsExceptionThrownWhenFilterIsNotAString(): void
'getSimpleColumnFilterByType' => $columnFilter,
]);


$query = $this->makeEmpty(QueryInterface::class);

$this->expectException(InvalidArgumentException::class);
Expand All @@ -46,15 +47,14 @@ public function testIsExceptionThrownWhenFilterIsNotAString(): void

public function testIfFilterFullTextIsCalled(): void
{
$columnFilter = new SimpleColumnFilter('system.fulltext', "term");
$columnFilter = new SimpleColumnFilter('system.fulltext', 'term');
$parameter = $this->makeEmpty(SimpleColumnFiltersParameterInterface::class, [
'getSimpleColumnFilterByType' => $columnFilter,
]);


$query = $this->makeEmpty(QueryInterface::class, [
'filterFullText' => Expected::once(function ($term) {
$this->assertSame("term", $term);
$this->assertSame('term', $term);

return $this->makeEmpty(QueryInterface::class);
}),
Expand All @@ -63,4 +63,4 @@ public function testIfFilterFullTextIsCalled(): void
$filter = new FullTextFilter();
$filter->apply($parameter, $query);
}
}
}

0 comments on commit d8aaf62

Please sign in to comment.