getMappingAttributeIdsByName() public method

Get array of mapping attributes for this Worklist, indexed by the name value of the attribute.
示例#1
0
 /**
  * @dataProvider getMappingAttributeIdsByNameProvider
  *
  * @param $worklist_attrs
  */
 public function test_getMappingAttributeIdsByName($worklist_attrs)
 {
     $worklist_attrs = array();
     $expected = array();
     foreach ($worklist_attrs as $attr) {
         $wa = ComponentStubGenerator::generate('WorklistAttribute', $attr);
         $expected[$attr['name']] = $wa;
         $worklist_attrs[] = $wa;
     }
     $worklist = new Worklist();
     $worklist->mapping_attributes = $worklist_attrs;
     $this->assertEquals($expected, $worklist->getMappingAttributeIdsByName());
 }