public function testGetModelRuntime() { $item = $this->prophesize('core_kernel_classes_Resource'); $itemModel = $this->prophesize('core_kernel_classes_Resource'); $itemModel->getOnePropertyValue(new core_kernel_classes_Property(TAO_ITEM_MODEL_RUNTIME_PROPERTY))->willReturn('returnValue'); $item->getOnePropertyValue(new core_kernel_classes_Property(TAO_ITEM_MODEL_PROPERTY))->willReturn($itemModel->reveal()); $this->assertEquals('returnValue', $this->itemsService->getModelRuntime($item->reveal())); }