/**
* @dataProvider getWorklistAttributeValueProvider
*
* @param $wp_attrs
* @param $attr
* @param $expected
*/
public function test_getWorklistAttributeValue($wp_attrs, $attr, $expected)
{
$worklist_attribute = ComponentStubGenerator::generate('WorklistAttribute', $attr);
$worklist_patient_attrs = array();
foreach ($wp_attrs as $attr) {
$worklist_patient_attrs[] = ComponentStubGenerator::generate('WorklistPatientAttribute', $attr);
}
$worklist_patient = new WorklistPatient();
$worklist_patient->worklist_attributes = $worklist_patient_attrs;
$this->assertEquals($expected, $worklist_patient->getWorklistAttributeValue($worklist_attribute));
}