Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Commit

Permalink
Merge pull request #416 from ins0/fix/415
Browse files Browse the repository at this point in the history
Hotfix: Added correct type comparison
  • Loading branch information
localheinz committed Feb 24, 2015
2 parents 3b7b277 + b9fde45 commit 8c55276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/ZfModule/src/ZfModule/Service/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function currentUserModules()
return false;
}

if (null === $this->moduleMapper->findByUrl($repository->html_url)) {
if (false === $this->moduleMapper->findByUrl($repository->html_url)) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions module/ZfModule/test/ZfModuleTest/Service/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function testListUserModulesDoesNotListModulesFromApiNotFoundInDatabase()
->expects($this->once())
->method('findByUrl')
->with($this->equalTo($repository->html_url))
->willReturn(null)
->willReturn(false)
;

$currentUserService = $this->getMockBuilder(Api\CurrentUser::class)->getMock();
Expand Down Expand Up @@ -381,7 +381,7 @@ public function testRegisterInsertsModule()
->expects($this->once())
->method('findByUrl')
->with($this->equalTo($repository->html_url))
->willReturn(null)
->willReturn(false)
;

$moduleMapper
Expand Down

0 comments on commit 8c55276

Please sign in to comment.