-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Hughes
committed
Feb 27, 2015
1 parent
c5e3c10
commit 79f4eaa
Showing
10 changed files
with
33 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Choccybiccy\HumanApi\Endpoint; | ||
|
||
/** | ||
* Class LocationsTest | ||
* @package Choccybiccy\HumanApi\Endpoint | ||
*/ | ||
class LocationsTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
|
||
/** | ||
* Test build specific entry url | ||
*/ | ||
public function testBuildSpecificEntryUrl() | ||
{ | ||
|
||
$locations = $this->getMock('Choccybiccy\HumanApi\Endpoint\Locations'); | ||
$type = $this->getProtectedProperty($locations, "type"); | ||
$id = 1; | ||
|
||
$locations->expects($this->once()) | ||
->method("buildUrlParts") | ||
->with($type, $id); | ||
|
||
$this->runProtectedMethod($locations, "buildSpecificEntryUrl", array($id)); | ||
|
||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.