public function testParent() { $parent = $this->getMock('JLM\\ProductBundle\\Model\\ProductCategoryInterface'); $this->assertSame($this->entity, $this->entity->setParent($parent)); $this->assertSame($parent, $this->entity->getParent()); }