From d8aaf627799201d9736d8bf32cb6791348fb268d Mon Sep 17 00:00:00 2001 From: martineiber Date: Thu, 7 Nov 2024 10:46:15 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- .../DataIndex/Filter/FullTextFilterTest.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/Unit/DataIndex/Filter/FullTextFilterTest.php b/tests/Unit/DataIndex/Filter/FullTextFilterTest.php index 1cec3217..de03ae7e 100644 --- a/tests/Unit/DataIndex/Filter/FullTextFilterTest.php +++ b/tests/Unit/DataIndex/Filter/FullTextFilterTest.php @@ -4,11 +4,14 @@ /** * 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; @@ -16,7 +19,6 @@ 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; @@ -34,7 +36,6 @@ public function testIsExceptionThrownWhenFilterIsNotAString(): void 'getSimpleColumnFilterByType' => $columnFilter, ]); - $query = $this->makeEmpty(QueryInterface::class); $this->expectException(InvalidArgumentException::class); @@ -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); }), @@ -63,4 +63,4 @@ public function testIfFilterFullTextIsCalled(): void $filter = new FullTextFilter(); $filter->apply($parameter, $query); } -} \ No newline at end of file +}