Skip to content

v1.0.11

Latest
Compare
Choose a tag to compare
@Mulkave Mulkave released this 13 Apr 13:35
· 8 commits to main since this release

Added

  • Support unit instances with mocks

We can now mock unit instances that are written with the new PHP syntax the same as we did with the previous class string syntax:

$repo = $this->run(new GetGitHubRepoJob(id: $repoId, withReleases: false));
GetGitHubRepoJob::mock([
  'id' => 'some-id-here',
  'withReleases' => false,
])->shouldReturn($sampleRepo);