/** * @expectedException \Zend_Acl_Role_Registry_Exception * @expectedExceptionMessage Parent Role id '26' does not exist */ public function testAddParentWrongParentId() { $roleId = 1; $parentRoleId = 2; list($role, ) = $this->initRoles($roleId, $parentRoleId); $this->model->addParent($role, 26); }