public function setUp()
 {
     $this->query = new Query();
     $this->query->setFile(__FILE__);
     $this->query->addParam('param1', 'value1');
     $this->query->addFieldMapping('from-field', 'to-field');
     $this->builder = new RequestBuilder();
 }
Example #2
0
 public function testAddFieldMapping()
 {
     $expectedFields = $this->query->getFieldMappings();
     $expectedFields['newfield'] = 'tofield';
     $this->query->addFieldMapping('newfield', 'tofield');
     $this->assertEquals($expectedFields, $this->query->getFieldMappings());
     return $this->query;
 }