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
Showing
9 changed files
with
141 additions
and
0 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
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,6 @@ | ||
<?php | ||
|
||
class Castle_Filter extends RestModel | ||
{ | ||
protected $isSingular = true; | ||
} |
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,6 @@ | ||
<?php | ||
|
||
class Castle_Log extends RestModel | ||
{ | ||
protected $isSingular = true; | ||
} |
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,6 @@ | ||
<?php | ||
|
||
class Castle_Risk extends RestModel | ||
{ | ||
protected $isSingular = true; | ||
} |
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
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
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,17 @@ | ||
<?php | ||
|
||
class CastleFilterTest extends Castle_TestCase | ||
{ | ||
public function tearDown(): void | ||
{ | ||
Castle_RequestTransport::reset(); | ||
Castle_RequestTransport::setResponse(200, ''); | ||
} | ||
|
||
public function testApprove() | ||
{ | ||
$auth = new Castle_Filter(); | ||
$auth->save(); | ||
$this->assertRequest('post', '/filter'); | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
class CastleLogTest extends Castle_TestCase | ||
{ | ||
public function tearDown(): void | ||
{ | ||
Castle_RequestTransport::reset(); | ||
Castle_RequestTransport::setResponse(200, ''); | ||
} | ||
|
||
public function testApprove() | ||
{ | ||
$auth = new CastleLog(); | ||
$auth->save(); | ||
$this->assertRequest('post', 'log'); | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
|
||
class CastleRiskTest extends Castle_TestCase | ||
{ | ||
public function tearDown(): void | ||
{ | ||
Castle_RequestTransport::reset(); | ||
Castle_RequestTransport::setResponse(200, ''); | ||
} | ||
|
||
public function testApprove() | ||
{ | ||
$auth = new Castle_Risk(); | ||
$auth->save(); | ||
$this->assertRequest('post', '/risk'); | ||
} | ||
} |