You are here

public function PersistentObjectTest::testSetToOneAssociationNull in Plug 7

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 95

Class

PersistentObjectTest
@group DDC-1448

Namespace

Doctrine\Tests\Common\Persistence

Code

public function testSetToOneAssociationNull() {
  $parent = new TestObject();
  $this->object
    ->setParent($parent);
  $this->object
    ->setParent(null);
  $this
    ->assertNull($this->object
    ->getParent());
}