Skip to content

Commit 239b25b

Browse files
authored
Merge pull request #33 from netlogix/fix/publish-testing-instance-of-consumer-backend-to-object-manager
2 parents 0146fb0 + 6af040b commit 239b25b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Tests/Functional/FunctionalTestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Neos\Flow\Tests\FunctionalTestCase as BaseTestCase;
88
use Netlogix\JsonApiOrg\Consumer\Domain\Model as JsonApi;
99
use Netlogix\JsonApiOrg\Consumer\Service\ConsumerBackend;
10+
use Netlogix\JsonApiOrg\Consumer\Service\ConsumerBackendInterface;
1011
use Psr\Http\Message\UriInterface;
1112

1213
class FunctionalTestCase extends BaseTestCase
@@ -40,6 +41,8 @@ public function setUp(): void
4041
$this->consumerBackend = new ConsumerBackend();
4142
$this->consumerBackend->addType($this->type);
4243
$this->type->__consumerBackend = $this->consumerBackend;
44+
45+
$this->objectManager->setInstance(ConsumerBackendInterface::class, $this->consumerBackend);
4346
}
4447

4548
public function asDataUri(array $fixture): UriInterface

0 commit comments

Comments
 (0)