public function testGetId() { $this->assertNull($this->entity->getId()); $testValue = 1; $reflectionProperty = new \ReflectionProperty('\\Oro\\Bundle\\WorkflowBundle\\Entity\\ProcessJob', 'id'); $reflectionProperty->setAccessible(true); $reflectionProperty->setValue($this->entity, $testValue); $this->assertEquals($testValue, $this->entity->getId()); }