Skip to content
Browse files

Tests for the inheritance issue in fixtures when a many to many relat…

…ionship involved two child object
  • Loading branch information...
1 parent 16c6a1e commit d6919b34e73c856271f1d456219967f332b8d360 @pimpreneil pimpreneil committed Nov 29, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 Tests/DataFixtures/Loader/YamlDataLoaderTest.php
View
8 Tests/DataFixtures/Loader/YamlDataLoaderTest.php
@@ -389,6 +389,12 @@ public function testLoadWithInheritedManyToManyRelationship()
<column name="name" type="varchar" size="255" />
</table>
+ <table name="table_history_book_inherited_m2m_relationship" phpName="YamlInheritedM2MRelationshipHistoryBook">
+ <behavior name="concrete_inheritance">
+ <parameter name="extends" value="table_book_inherited_m2m_relationship" />
+ </behavior>
+ </table>
+
<table name="table_author_inherited_m2m_relationship" phpName="YamlInheritedM2MRelationshipAuthor">
<column name="id" type="integer" primaryKey="true" autoIncrement="true" />
<column name="name" type="varchar" size="255" />
@@ -419,6 +425,8 @@ public function testLoadWithInheritedManyToManyRelationship()
Propel\PropelBundle\Tests\Fixtures\DataFixtures\Loader\YamlInheritedM2MRelationshipBook:
Book_1:
name: 'Supplice du santal'
+
+Propel\PropelBundle\Tests\Fixtures\DataFixtures\Loader\YamlInheritedM2MRelationshipHistoryBook:
Book_2:
name: 'Qiushui'

0 comments on commit d6919b3

Please sign in to comment.
Something went wrong with that request. Please try again.