/** * Test for Mage_Webapi_Model_Authorization_Loader_Role::populateAcl * * Test with No existing role Ids */ public function testPopulateAclWithNoRoles() { $this->_resourceModelMock->expects($this->once())->method('getRolesIds')->will($this->returnValue(array())); $this->_roleFactory->expects($this->never())->method('createRole'); $this->_acl->expects($this->never())->method('addRole'); $this->_acl->expects($this->never())->method('deny'); $this->_model->populateAcl($this->_acl); }