Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing the objects with `instanceof static` will not work for different classes that extend `Entity`, as `static` will refer to the extending class, ie the objects would get tested against the class on which the `errors()` method is being called.
- Loading branch information
ndm2
committed
Dec 11, 2014
1 parent
e6762a6
commit 0fbf8ba
Showing
4 changed files
with
49 additions
and
16 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
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,13 @@ | ||
<?php | ||
|
||
namespace TestApp\Model\Entity; | ||
|
||
use Cake\ORM\Entity; | ||
|
||
/** | ||
* Tests entity class used for asserting correct loading | ||
* | ||
*/ | ||
class Owner extends Entity { | ||
|
||
} |
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,13 @@ | ||
<?php | ||
|
||
namespace TestApp\Model\Entity; | ||
|
||
use Cake\ORM\Entity; | ||
|
||
/** | ||
* Tests entity class used for asserting correct loading | ||
* | ||
*/ | ||
class User extends Entity { | ||
|
||
} |