Exemple #1
0
 public function testGetParsedPropertyValueMultipleValues()
 {
     $properties = array('id' => 'ohrmList_chkSelectRecord_{id}', 'name' => 'chkSelectRow[]', 'valueGetter' => 'getId', 'label' => 'Enable', 'placeholderGetters' => array('id' => 'getId'));
     $dataObject = new TestDataObject();
     $dataObject->setId(2);
     $this->cell->setDataObject($dataObject);
     $this->cell->setProperties($properties);
     $id = $this->cell->getParsedPropertyValue('id');
     $this->assertEquals('ohrmList_chkSelectRecord_2', $id);
     $name = $this->cell->getParsedPropertyValue('name');
     $this->assertEquals('chkSelectRow[]', $name);
     $value = $this->cell->getParsedPropertyValue('value');
     $this->assertEquals('2', $value);
     $labelName = $this->cell->getParsedPropertyValue('label');
     $this->assertEquals('Enable', $labelName);
 }