Skip to content

Commit

Permalink
Merge pull request #105 from proophsoftware/feature/inject-test-depen…
Browse files Browse the repository at this point in the history
…dencies

Provide access to container during tests
  • Loading branch information
codeliner committed Oct 21, 2018
2 parents 37b28e0 + b9fa2dc commit cfe630e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ public function writeModelStreamName(): string
return $this->writeModelStreamName;
}

public function bootstrapInTestMode(array $history, array $serviceMap = []): self
public function bootstrapInTestMode(array $history, array $serviceMap = []): ContainerInterface
{
$this->assertInitialized(__METHOD__);
$this->assertNotBootstrapped(__METHOD__);
Expand Down Expand Up @@ -801,7 +801,7 @@ function (ActionEvent $event): void {

$this->bootstrap(self::ENV_TEST, true);

return $this;
return $this->container;
}

public function popRecordedEventsOfTestSession(): array
Expand Down

0 comments on commit cfe630e

Please sign in to comment.