@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Sulu\Bundle\ElasticsearchActivityLogBundle\Tests\Storage; |
4 | 4 | |
5 | +use ONGR\ElasticsearchBundle\Service\Manager; |
|
5 | 6 | use Prophecy\Argument; |
6 | 7 | use Sulu\Bundle\ElasticsearchActivityLogBundle\Storage\ElasticsearchActivityStorage; |
7 | -use ONGR\ElasticsearchBundle\Service\Manager; |
|
8 | 8 | use Sulu\Component\ActivityLog\Repository\UserRepositoryInterface; |
9 | 9 | use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; |
10 | 10 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $search = $this->createQueryForSearch($query, $fields); |
105 | 105 | |
106 | 106 | if ($sortColumn && $sortOrder) { |
107 | - $search->addSort(new FieldSort($sortColumn . '.raw', $sortOrder)); |
|
107 | + $search->addSort(new FieldSort($sortColumn.'.raw', $sortOrder)); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | if (!$pageSize) { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $boolQuery = new BoolQuery(); |
217 | 217 | |
218 | 218 | foreach ($fields as $field) { |
219 | - $boolQuery->add(new WildcardQuery($field, '*' . $query . '*'), BoolQuery::SHOULD); |
|
219 | + $boolQuery->add(new WildcardQuery($field, '*'.$query.'*'), BoolQuery::SHOULD); |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | $search->addQuery($boolQuery); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function registerContainerConfiguration(LoaderInterface $loader) |
36 | 36 | { |
37 | - $loader->load(__DIR__ . '/config/config.yml'); |
|
37 | + $loader->load(__DIR__.'/config/config.yml'); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | use Doctrine\Common\Annotations\AnnotationRegistry; |
13 | 13 | |
14 | -$file = __DIR__ . '/../vendor/autoload.php'; |
|
14 | +$file = __DIR__.'/../vendor/autoload.php'; |
|
15 | 15 | if (!file_exists($file)) { |
16 | 16 | throw new RuntimeException('Install dependencies to run test suite.'); |
17 | 17 | } |