-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit tests for adding, removing and checking many 2 many relations
More coverage for the other types is needed
- Loading branch information
Showing
7 changed files
with
129 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,5 @@ | ||
<?php | ||
|
||
class Horde_Rdo_Test_Objects_ManyToManyA extends Horde_Rdo_Base | ||
{ | ||
} |
13 changes: 13 additions & 0 deletions
13
framework/Rdo/test/Horde/Rdo/Objects/ManyToManyAMapper.php
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 | ||
class Horde_Rdo_Test_Objects_ManyToManyAMapper extends Horde_Rdo_Mapper | ||
{ | ||
/** | ||
* Inflector doesn't support Horde-style tables yet | ||
*/ | ||
protected $_table = 'test_manytomanya'; | ||
protected $_lazyRelationships = array( | ||
'manybs' => array('type' => Horde_Rdo::MANY_TO_MANY, | ||
'through' => 'test_manythrough', | ||
'mapper' => 'Horde_Rdo_Test_Objects_ManyToManyBMapper'), | ||
); | ||
} |
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,5 @@ | ||
<?php | ||
|
||
class Horde_Rdo_Test_Objects_ManyToManyB extends Horde_Rdo_Base | ||
{ | ||
} |
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,9 @@ | ||
<?php | ||
class Horde_Rdo_Test_Objects_ManyToManyBMapper extends Horde_Rdo_Mapper | ||
{ | ||
/** | ||
* Inflector doesn't support Horde-style tables yet | ||
*/ | ||
protected $_table = 'test_manytomanyb'; | ||
protected $_lazyRelationships = array(); | ||
} |
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