-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Neusta\ElasticIndexBundle\Tests\Fixture\Filter; | ||
|
||
use Neusta\ElasticIndexBundle\Index\Data\DataCollection; | ||
use Neusta\ElasticIndexBundle\Index\Data\Filter\DataFilter; | ||
|
||
class TestDataFilter implements DataFilter | ||
{ | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function filter(DataCollection $elements): iterable | ||
{ | ||
return $elements; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function filterOne(object $element): ?object | ||
{ | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Neusta\ElasticIndexBundle\Tests\Fixture\Messenger; | ||
|
||
use Neusta\ElasticIndexBundle\Index\Data\Messenger\DataMessage; | ||
use Neusta\ElasticIndexBundle\Index\Data\Messenger\DataMessageFactory; | ||
|
||
class TestDataMessageFactory implements DataMessageFactory | ||
{ | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function create(object $object): DataMessage | ||
{ | ||
return new DataMessage($object); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Neusta\ElasticIndexBundle\Tests\Fixture\Repository; | ||
|
||
use Neusta\ElasticIndexBundle\Index\Data\DataCollection; | ||
use Neusta\ElasticIndexBundle\Index\Data\DataRepository; | ||
|
||
class TestDataRepository implements DataRepository | ||
{ | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function findAll(): DataCollection | ||
{ | ||
// TODO: Implement findAll() method. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
|
||
Neusta\ElasticIndexBundle\Index\Data\DataRepository: | ||
class: Neusta\ElasticIndexBundle\Tests\Fixture\Repository\TestDataRepository | ||
|
||
Neusta\ElasticIndexBundle\Index\Data\Filter\DataFilter: | ||
class: Neusta\ElasticIndexBundle\Tests\Fixture\Filter\TestDataFilter | ||
|
||
Neusta\ElasticIndexBundle\Index\Data\Messenger\DataMessageFactory: | ||
class: Neusta\ElasticIndexBundle\Tests\Fixture\Messenger\TestDataMessageFactory |
This file was deleted.
Oops, something went wrong.