Skip to content

Commit

Permalink
make createReadModel protected
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Feb 17, 2020
1 parent 7587a35 commit dbb645c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Broadway/ReadModel/Testing/RepositoryTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function it_returns_all_read_models()
$this->assertEquals([$model1, $model2, $model3], $this->repository->findAll());
}

private function createReadModel($id, $name, $foo, array $array = [])
protected function createReadModel($id, $name, $foo, array $array = [])
{
return new RepositoryTestReadModel($id, $name, $foo, $array);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function it_can_be_transferred_to_another_repository()
$this->assertEquals($targetRepository->findAll(), $repository->findAll());
}

private function createReadModel($id, $name, $foo, array $array = []): RepositoryTestReadModel
protected function createReadModel($id, $name, $foo, array $array = []): RepositoryTestReadModel
{
return new RepositoryTestReadModel($id, $name, $foo, $array);
}
Expand Down

0 comments on commit dbb645c

Please sign in to comment.