public function testBindsResourceTypes() { $types = array(new ResourceType(1, 'name', 'desc')); $ids = array(1); $attributes = $this->getMock('IEntityAttributeList'); $this->resourceRepository->expects($this->once())->method('GetResourceTypes')->will($this->returnValue($types)); $this->attributeService->expects($this->once())->method('GetAttributes')->with($this->equalTo(CustomAttributeCategory::RESOURCE_TYPE), $this->equalTo($ids))->will($this->returnValue($attributes)); $this->page->expects($this->once())->method('BindResourceTypes')->with($this->equalTo($types)); $this->page->expects($this->once())->method('BindAttributeList')->with($this->equalTo($attributes)); $this->presenter->PageLoad(); }
public function ProcessPageLoad() { $this->presenter->PageLoad(); $this->Display('Admin/Resources/manage_resource_types.tpl'); }