public function testProduct() { $product = $this->getMock('JLM\\ProductBundle\\Model\\ProductInterface'); $this->assertSame($this->entity, $this->entity->setProduct($product)); $this->assertSame($product, $this->entity->getProduct()); }