public function testPostLoad() { $entity = new OrderLineItem(); $entity->setValue(42); $entity->setCurrency('USD'); $this->assertEmpty($entity->getPrice()); $entity->postLoad(); $this->assertEquals(Price::create(42, 'USD'), $entity->getPrice()); }