public function PersistentObjectTest::testSetToOneAssociation

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php, line 80

Class

PersistentObjectTest
@group DDC-1448

Namespace

Doctrine\Tests\Common\Persistence

Code

public function testSetToOneAssociation() {
  $parent = new TestObject();
  $this->object
    ->setParent($parent);
  $this
    ->assertSame($parent, $this->object
    ->getParent($parent));
}