PHP Class AuthRulesTest

OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Author: OpenEyes ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: openeyes/openeyes

Public Methods

Method Description
setUp ( )
tearDown ( )
testCanCreateEvent_Disabled ( )
testCanCreateEvent_LegacyEpisode ( )
testCanCreateEvent_NoData ( )
testCanCreateEvent_NoEventType ( )
testCanCreateEvent_NoEventType_LegacyEpisode ( )
testCanCreateEvent_NoEventType_WrongSubspecialtyEpisode ( )
testCanCreateEvent_NormalFirm_NonSupportServiceEventType ( )
testCanCreateEvent_NormalFirm_SupportServiceEventType ( )
testCanCreateEvent_SupportServicesFirm_NonSupportServiceEventType ( )
testCanCreateEvent_SupportServicesFirm_SupportServiceEventType ( )
testCanCreateEvent_WrongSubspecialtyEpisode ( )
testCanDeleteEvent_Admin ( )
testCanDeleteEvent_CorrectSubspecialty ( )
testCanDeleteEvent_EventLockingDisabled ( )
testCanDeleteEvent_LegacyEpisode ( )
testCanDeleteEvent_ModuleAllows ( )
testCanDeleteEvent_ModuleDisallows ( )
testCanDeleteEvent_NotTimeLocked ( )
testCanDeleteEvent_PatientDeceased ( )
testCanDeleteEvent_TimeLocked ( )
testCanDeleteEvent_WrongSubspecialty ( )
testCanDeleteEvent_WrongUser ( )
testCanEditEpisode_NormalFirm_LegacyEpisode ( )
testCanEditEpisode_NormalFirm_NormalEpisode_MatchingSubspecialty ( )
testCanEditEpisode_NormalFirm_NormalEpisode_NonMatchingSubspecialty ( )
testCanEditEpisode_NormalFirm_SupportServicesEpisode ( )
testCanEditEpisode_SupportServicesFirm_LegacyEpisode ( )
testCanEditEpisode_SupportServicesFirm_NormalEpisode ( )
testCanEditEpisode_SupportServicesFirm_SupportServicesEpisode ( )
testCanEditEvent_Admin ( )
testCanEditEvent_CorrectSubspecialty ( )
testCanEditEvent_DeletePending ( )
testCanEditEvent_EventLockingDisabled ( )
testCanEditEvent_LegacyEpisode ( )
testCanEditEvent_ModuleAllows ( )
testCanEditEvent_ModuleDisallows ( )
testCanEditEvent_NotTimeLocked ( )
testCanEditEvent_PatientDeceased ( )
testCanEditEvent_TimeLocked ( )
testCanEditEvent_WrongSubspecialty ( )
testCanRequestEventDeletion_CorrectSubspecialty ( )
testCanRequestEventDeletion_DeletePending ( )
testCanRequestEventDeletion_LegacyEpisode ( )
testCanRequestEventDeletion_ModuleDisallows ( )
testCanRequestEventDeletion_PatientDeceased ( )
testCanRequestEventDeletion_WrongSubspecialty ( )

Private Methods

Method Description
becomeAdminUser ( )
getDisabledEventType ( )
getEpisode ( array $props = [] )
getEvent ( array $props = [] )
getLegacyEpisode ( )
getNonSupportServicesEventType ( )
getNormalEpisode ( $subspecialty_id = 42 )
getNormalFirm ( $subspecialty_id = 42 )
getSupportServicesEpisode ( )
getSupportServicesEventType ( )
getSupportServicesFirm ( )
getUser ( $id = 1 )

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testCanCreateEvent_Disabled() public method

testCanCreateEvent_LegacyEpisode() public method

testCanCreateEvent_NoData() public method

testCanCreateEvent_NoEventType() public method

testCanCreateEvent_NoEventType_LegacyEpisode() public method

testCanCreateEvent_NoEventType_WrongSubspecialtyEpisode() public method

testCanCreateEvent_NormalFirm_NonSupportServiceEventType() public method

testCanCreateEvent_NormalFirm_SupportServiceEventType() public method

testCanCreateEvent_SupportServicesFirm_NonSupportServiceEventType() public method

testCanCreateEvent_SupportServicesFirm_SupportServiceEventType() public method

testCanCreateEvent_WrongSubspecialtyEpisode() public method

testCanDeleteEvent_Admin() public method

testCanDeleteEvent_CorrectSubspecialty() public method

testCanDeleteEvent_EventLockingDisabled() public method

testCanDeleteEvent_LegacyEpisode() public method

testCanDeleteEvent_ModuleAllows() public method

testCanDeleteEvent_ModuleDisallows() public method

testCanDeleteEvent_NotTimeLocked() public method

testCanDeleteEvent_PatientDeceased() public method

testCanDeleteEvent_TimeLocked() public method

testCanDeleteEvent_WrongSubspecialty() public method

testCanDeleteEvent_WrongUser() public method

testCanEditEpisode_NormalFirm_LegacyEpisode() public method

testCanEditEpisode_NormalFirm_NormalEpisode_MatchingSubspecialty() public method

testCanEditEpisode_NormalFirm_NormalEpisode_NonMatchingSubspecialty() public method

testCanEditEpisode_NormalFirm_SupportServicesEpisode() public method

testCanEditEpisode_SupportServicesFirm_LegacyEpisode() public method

testCanEditEpisode_SupportServicesFirm_NormalEpisode() public method

testCanEditEpisode_SupportServicesFirm_SupportServicesEpisode() public method

testCanEditEvent_Admin() public method

testCanEditEvent_CorrectSubspecialty() public method

testCanEditEvent_DeletePending() public method

testCanEditEvent_EventLockingDisabled() public method

testCanEditEvent_LegacyEpisode() public method

testCanEditEvent_ModuleAllows() public method

testCanEditEvent_ModuleDisallows() public method

testCanEditEvent_NotTimeLocked() public method

testCanEditEvent_PatientDeceased() public method

testCanEditEvent_TimeLocked() public method

testCanEditEvent_WrongSubspecialty() public method

testCanRequestEventDeletion_CorrectSubspecialty() public method

testCanRequestEventDeletion_DeletePending() public method

testCanRequestEventDeletion_LegacyEpisode() public method

testCanRequestEventDeletion_ModuleDisallows() public method

testCanRequestEventDeletion_PatientDeceased() public method

testCanRequestEventDeletion_WrongSubspecialty() public method