function buildRequest($action, $params, $config = [])
 {
     return Builder::build($action, $params, $this->getDataHelper($config));
 }
Ejemplo n.º 2
0
 function testMultiplePropertyCreation()
 {
     $tests = self::getTestConfigs('misc_builder_tests');
     $musi = $tests['multiple_property_single_element'];
     $this->array(ReqBuilder::processSchema($musi['schema'], $musi['values']))->isEqualTo($musi['expect']);
 }
Ejemplo n.º 3
0
 function getTestRequest($req, $with_response = FALSE)
 {
     $built = ReqBuilder::build($req, $this->getSampleRequest($req), new \RoyalMail\Helper\Data());
     return $with_response ? ['request' => $built, 'response' => $this->getSampleRequest($req, 'response')] : $built;
 }