comparison core/modules/rest/tests/src/Functional/ResourceTestBase.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
346 */ 346 */
347 protected function request($method, Url $url, array $request_options) { 347 protected function request($method, Url $url, array $request_options) {
348 $request_options[RequestOptions::HTTP_ERRORS] = FALSE; 348 $request_options[RequestOptions::HTTP_ERRORS] = FALSE;
349 $request_options[RequestOptions::ALLOW_REDIRECTS] = FALSE; 349 $request_options[RequestOptions::ALLOW_REDIRECTS] = FALSE;
350 $request_options = $this->decorateWithXdebugCookie($request_options); 350 $request_options = $this->decorateWithXdebugCookie($request_options);
351 $client = $this->getSession()->getDriver()->getClient()->getClient(); 351 $client = $this->getHttpClient();
352 return $client->request($method, $url->setAbsolute(TRUE)->toString(), $request_options); 352 return $client->request($method, $url->setAbsolute(TRUE)->toString(), $request_options);
353 } 353 }
354 354
355 /** 355 /**
356 * Asserts that a resource response has the given status code and body. 356 * Asserts that a resource response has the given status code and body.