Ejemplo n.º 1
0
 public function testPopulateFromArray()
 {
     $properties = array('name' => 'Full Name', 'isSortable' => true, 'sortOrder' => 'DESC', 'elementType' => 'link', 'elementProperty' => 'getFullName', 'width' => 100);
     $this->object->populateFromArray($properties);
     $this->assertEquals($properties['name'], $this->object->getName());
     $this->assertEquals($properties['isSortable'], $this->object->isSortable());
     $this->assertEquals($properties['elementType'], $this->object->getElementType());
     $this->assertEquals($properties['elementProperty'], $this->object->getElementProperty());
     $this->assertEquals($properties['width'], $this->object->getWidth());
 }