public function testTransportRelation() { $transport = $this->getMockForAbstractClass('Oro\\Bundle\\IntegrationBundle\\Entity\\Transport'); $this->assertAttributeEmpty('transport', $this->entity); $this->entity->setTransport($transport); $this->assertSame($transport, $this->entity->getTransport()); $this->entity->clearTransport(); $this->assertAttributeEmpty('transport', $this->entity); }