diff --git a/tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php b/tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php
index 2571a1b98..a5f92d870 100644
--- a/tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php
+++ b/tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php
@@ -324,7 +324,23 @@ abstract class AbstractClassMetadataExporterTest extends \Doctrine\Tests\OrmTest
{
$this->assertEquals('user', $class->associationMappings['address']['inversedBy']);
}
-
+ /**
+ * @depends testOneToManyAssociationsAreExported
+ * @param ClassMetadataInfo $class
+ */
+ public function testCascadeIsDetected($class)
+ {
+ if(!isset($class->associationMappings['interests'])){
+ $this->markTestSkipped('The "interests" association is not aviable.');
+ }else{
+ $this->assertTrue($class->associationMappings['interests']['isCascadePersist']);
+ $this->assertTrue($class->associationMappings['interests']['isCascadeMerge']);
+ $this->assertTrue($class->associationMappings['interests']['isCascadeRemove']);
+ $this->assertTrue($class->associationMappings['interests']['isCascadeRefresh']);
+ $this->assertTrue($class->associationMappings['interests']['isCascadeDetach']);
+ }
+ return $class;
+ }
public function __destruct()
{
# $this->_deleteDirectory(__DIR__ . '/export/'.$this->_getType());
diff --git a/tests/Doctrine/Tests/ORM/Tools/Export/xml/Doctrine.Tests.ORM.Tools.Export.User.dcm.xml b/tests/Doctrine/Tests/ORM/Tools/Export/xml/Doctrine.Tests.ORM.Tools.Export.User.dcm.xml
index c562003c6..843882278 100644
--- a/tests/Doctrine/Tests/ORM/Tools/Export/xml/Doctrine.Tests.ORM.Tools.Export.User.dcm.xml
+++ b/tests/Doctrine/Tests/ORM/Tools/Export/xml/Doctrine.Tests.ORM.Tools.Export.User.dcm.xml
@@ -35,6 +35,16 @@
+
+
+
+
+
+
+
+
+
+