Skip to content

Commit 6af040b

Browse files
fix: Publish testing instance of ConsumerBackend to ObjectManager
1 parent 0146fb0 commit 6af040b

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)