diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php deleted file mode 100644 index 1dd75007930..00000000000 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3343Test.php +++ /dev/null @@ -1,59 +0,0 @@ -useModelSet('tweet'); - - parent::setUp(); - } - - public function testEntityNotDeletedWhenRemovedFromExtraLazyAssociation() - { - $user = new User(); - $tweet = new Tweet(); - - $user->name = 'ocramius'; - $tweet->content = 'The cat is on the table'; - - $user->addTweet($tweet); - - $this->_em->persist($user); - $this->_em->persist($tweet); - $this->_em->flush(); - $this->_em->clear(); - - /* @var $user User */ - $user = $this->_em->find(User::CLASSNAME, $user->id); - $tweet = $this->_em->find(Tweet::CLASSNAME, $tweet->id); - - $user->tweets->removeElement($tweet); - - $this->assertCount(0, $user->tweets); - - $this->_em->clear(); - - /* @var $tweet Tweet */ - $tweet = $this->_em->find(Tweet::CLASSNAME, $tweet->id); - $this->assertInstanceOf( - Tweet::CLASSNAME, - $tweet, - 'Even though the collection is extra lazy, the tweet should not have been deleted' - ); - - $this->assertNull($tweet->author); - } -}