Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jun 24, 2017
1 parent 4f2796f commit 22b2f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Action/FetchProjectionNamesRegexTest.php
Expand Up @@ -50,11 +50,11 @@ public function it_returns_415_when_invalid_accept_header_sent(): void
public function it_returns_filtered_projection_names(): void
{
$projectionManager = $this->prophesize(ProjectionManager::class);
$projectionManager->fetchProjectionNames('^foo$', 20, 0)->willReturn(['foo'])->shouldBeCalled();
$projectionManager->fetchProjectionNamesRegex('^foo$', 20, 0)->willReturn(['foo'])->shouldBeCalled();

$request = $this->prophesize(ServerRequestInterface::class);
$request->getHeaderLine('Accept')->willReturn('application/atom+json')->shouldBeCalled();
$request->getAttribute('filter')->willReturn(json_encode('^foo$'))->shouldBeCalled();
$request->getAttribute('filter')->willReturn(urlencode('^foo$'))->shouldBeCalled();
$request->getAttribute('limit')->willReturn('20')->shouldBeCalled();
$request->getAttribute('offset')->willReturn('0')->shouldBeCalled();

Expand Down

0 comments on commit 22b2f2a

Please sign in to comment.