public function testOwner() { $this->assertNull($this->comment->getOwner()); $value = $this->getMockBuilder('Oro\\Bundle\\UserBundle\\Entity\\User')->disableOriginalConstructor()->getMock(); $this->assertEquals($this->comment, $this->comment->setOwner($value)); $this->assertEquals($value, $this->comment->getOwner()); }