comparison core/modules/rest/src/Tests/RESTTestBase.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children 12f9dff5fda9
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
381 $resource_config = $this->resourceConfigStorage->load($resource_config_id); 381 $resource_config = $this->resourceConfigStorage->load($resource_config_id);
382 if (!$resource_config) { 382 if (!$resource_config) {
383 $resource_config = $this->resourceConfigStorage->create([ 383 $resource_config = $this->resourceConfigStorage->create([
384 'id' => $resource_config_id, 384 'id' => $resource_config_id,
385 'granularity' => RestResourceConfigInterface::METHOD_GRANULARITY, 385 'granularity' => RestResourceConfigInterface::METHOD_GRANULARITY,
386 'configuration' => [] 386 'configuration' => [],
387 ]); 387 ]);
388 } 388 }
389 $configuration = $resource_config->get('configuration'); 389 $configuration = $resource_config->get('configuration');
390 390
391 if (is_array($format)) { 391 if (is_array($format)) {
560 * 560 *
561 * @param $expected 561 * @param $expected
562 * The first value to check. 562 * The first value to check.
563 * @param $message 563 * @param $message
564 * (optional) A message to display with the assertion. Do not translate 564 * (optional) A message to display with the assertion. Do not translate
565 * messages: use \Drupal\Component\Utility\SafeMarkup::format() to embed 565 * messages: use \Drupal\Component\Render\FormattableMarkup to embed
566 * variables in the message text, not t(). If left blank, a default message 566 * variables in the message text, not t(). If left blank, a default message
567 * will be displayed. 567 * will be displayed.
568 * @param $group 568 * @param $group
569 * (optional) The group this message is in, which is displayed in a column 569 * (optional) The group this message is in, which is displayed in a column
570 * in test output. Use 'Debug' to indicate this is debugging output. Do not 570 * in test output. Use 'Debug' to indicate this is debugging output. Do not