public function testGetItemModel() { $item = $this->prophesize('core_kernel_classes_Resource'); $itemModelProphecy = $this->prophesize('core_kernel_classes_Resource'); $itemModel = $itemModelProphecy->reveal(); $item->getOnePropertyValue(new core_kernel_classes_Property(TAO_ITEM_MODEL_PROPERTY))->willReturn($itemModel); $this->assertEquals($itemModel, $this->itemsService->getItemModel($item->reveal())); }