PHP Class Element_OphTrOperationbooking_OperationTest

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 CDbTestCase
Show file Open project: openeyes/openeyes

Public Properties

Property Type Description
$fixtures

Public Methods

Method Description
getCalculateERODTestCases ( )
setUp ( )
setUpBeforeClass ( )
testCantScheduleOperationWhenPatientUnavailable ( )
testProcedureCountBothEyes ( )
testProcedureCountSingleEye ( )
testReferralMustBelongtoPatient ( )
testReferralValidatorMustBeCalled ( )
testScheduleLocksRtt ( )
testScheduleLocksRttNotInFuture ( )
testSchedule_ReferralNotRequiredWhenConfigured ( )
testSchedule_ReferralRequiredWhenConfigured ( )
testWillStoreHasBookingsState ( )
testcalculateEROD ( $op_properties, $patient, $firm_key, $expected_erod_session_key, $description )
testcanChangeReferral_true ( )
testgetRTTBreach_actualRTT ( )
testgetRTTBreach_configured ( )
testgetRTTBreach_notConfigured ( )
testgetRTT_fixed ( )
testgetRTT_referral1Active ( )
testgetRTT_referral2Active ( )
testgetWardOptions_Boy ( )
testgetWardOptions_FemaleAdult ( )
testgetWardOptions_Girl ( )
testgetWardOptions_MaleAdult ( )
testgetWardOptions_OtherSite ( )
testsetStatus_invalidStatus ( )
testsetStatus_noSave ( )
testsetStatus_save ( )
testvalidateReferral_CannotBeChangedAfterOperationScheduled ( )

Protected Methods

Method Description
assertOrderedAssocArrayEqual ( $expected, $res ) Checks both that the array values are equal, and that the keys for the array are in the same order which assertEquals does not appear to do.
getBoyPatient ( )
getFemalePatient ( )
getGirlPatient ( )
getMalePatient ( )
getOperationForPatient ( $patient, $methods = null )
getSessionForTheatre ( $theatre )

Method Details

assertOrderedAssocArrayEqual() protected method

Checks both that the array values are equal, and that the keys for the array are in the same order which assertEquals does not appear to do.
protected assertOrderedAssocArrayEqual ( $expected, $res )
$expected
$res

getBoyPatient() protected method

protected getBoyPatient ( )

getCalculateERODTestCases() public method

getFemalePatient() protected method

protected getFemalePatient ( )

getGirlPatient() protected method

protected getGirlPatient ( )

getMalePatient() protected method

protected getMalePatient ( )

getOperationForPatient() protected method

protected getOperationForPatient ( $patient, $methods = null )

getSessionForTheatre() protected method

protected getSessionForTheatre ( $theatre )

setUp() public method

public setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

testCantScheduleOperationWhenPatientUnavailable() public method

testProcedureCountBothEyes() public method

testProcedureCountSingleEye() public method

testReferralMustBelongtoPatient() public method

testReferralValidatorMustBeCalled() public method

testScheduleLocksRtt() public method

testScheduleLocksRttNotInFuture() public method

testSchedule_ReferralNotRequiredWhenConfigured() public method

testSchedule_ReferralRequiredWhenConfigured() public method

testWillStoreHasBookingsState() public method

testcalculateEROD() public method

public testcalculateEROD ( $op_properties, $patient, $firm_key, $expected_erod_session_key, $description )

testcanChangeReferral_true() public method

testgetRTTBreach_actualRTT() public method

testgetRTTBreach_configured() public method

testgetRTTBreach_notConfigured() public method

testgetRTT_fixed() public method

public testgetRTT_fixed ( )

testgetRTT_referral1Active() public method

testgetRTT_referral2Active() public method

testgetWardOptions_Boy() public method

testgetWardOptions_FemaleAdult() public method

testgetWardOptions_Girl() public method

testgetWardOptions_MaleAdult() public method

testgetWardOptions_OtherSite() public method

testsetStatus_invalidStatus() public method

testsetStatus_noSave() public method

testsetStatus_save() public method

public testsetStatus_save ( )

testvalidateReferral_CannotBeChangedAfterOperationScheduled() public method

Property Details

$fixtures public property

public $fixtures