@@ -97,6 +97,9 @@ discard block |
||
| 97 | 97 | $this->assertInstanceOf(HybridPaginatorAdapter::class, $finder->createHybridPaginatorAdapter('')); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $transformMethod |
|
| 102 | + */ |
|
| 100 | 103 | private function createMockTransformer($transformMethod) |
| 101 | 104 | { |
| 102 | 105 | $transformer = $this->createMock(ElasticaToModelTransformerInterface::class); |
@@ -109,6 +112,11 @@ discard block |
||
| 109 | 112 | return $transformer; |
| 110 | 113 | } |
| 111 | 114 | |
| 115 | + /** |
|
| 116 | + * @param \PHPUnit\Framework\MockObject\MockObject $transformer |
|
| 117 | + * @param Query $query |
|
| 118 | + * @param integer $limit |
|
| 119 | + */ |
|
| 112 | 120 | private function createMockFinderForSearch($transformer, $query, $limit) |
| 113 | 121 | { |
| 114 | 122 | $searchable = $this->createMock(SearchableInterface::class); |
@@ -212,6 +212,9 @@ |
||
| 212 | 212 | ]; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | + /** |
|
| 216 | + * @param string $name |
|
| 217 | + */ |
|
| 215 | 218 | private function getMockedIndex($name) |
| 216 | 219 | { |
| 217 | 220 | $index = $this->createMock(Index::class); |
@@ -238,6 +238,9 @@ discard block |
||
| 238 | 238 | call_user_func_array([$expectation, 'withConsecutive'], $events); |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | + /** |
|
| 242 | + * @param string $indexName |
|
| 243 | + */ |
|
| 241 | 244 | private function mockIndex($indexName, IndexConfig $config, $mapping = []) |
| 242 | 245 | { |
| 243 | 246 | $this->configManager->expects($this->atLeast(1)) |
@@ -257,6 +260,10 @@ discard block |
||
| 257 | 260 | return $index; |
| 258 | 261 | } |
| 259 | 262 | |
| 263 | + /** |
|
| 264 | + * @param string $typeName |
|
| 265 | + * @param string $indexName |
|
| 266 | + */ |
|
| 260 | 267 | private function mockType($typeName, $indexName, TypeConfig $typeConfig, IndexConfig $indexConfig, $mapping = []) |
| 261 | 268 | { |
| 262 | 269 | $this->configManager->expects($this->atLeast(1)) |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | $repository->findHybrid($testQuery); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $testQuery |
|
| 71 | + */ |
|
| 69 | 72 | private function getFinderMock($testQuery, $testLimit = null, $method = 'find') |
| 70 | 73 | { |
| 71 | 74 | $finderMock = $this->createMock(TransformedFinder::class); |