comparison core/modules/rest/src/Tests/RESTTestBase.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
1 <?php 1 <?php
2 2
3 namespace Drupal\rest\Tests; 3 namespace Drupal\rest\Tests;
4
5 @trigger_error(__NAMESPACE__ . '\RESTTestBase is deprecated in Drupal 8.3.x-dev and will be removed before Drupal 9.0.0. Use \Drupal\Tests\rest\Functional\ResourceTestBase and \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase instead. Only retained for contributed module tests that may be using this base class.', E_USER_DEPRECATED);
4 6
5 use Drupal\Component\Utility\NestedArray; 7 use Drupal\Component\Utility\NestedArray;
6 use Drupal\Core\Config\Entity\ConfigEntityType; 8 use Drupal\Core\Config\Entity\ConfigEntityType;
7 use Drupal\node\NodeInterface; 9 use Drupal\node\NodeInterface;
8 use Drupal\rest\RestResourceConfigInterface; 10 use Drupal\rest\RestResourceConfigInterface;
11 use GuzzleHttp\Cookie\SetCookie; 13 use GuzzleHttp\Cookie\SetCookie;
12 14
13 /** 15 /**
14 * Test helper class that provides a REST client method to send HTTP requests. 16 * Test helper class that provides a REST client method to send HTTP requests.
15 * 17 *
16 * @deprecated in Drupal 8.3.x-dev and will be removed before Drupal 9.0.0. Use \Drupal\Tests\rest\Functional\ResourceTestBase and \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase instead. Only retained for contributed module tests that may be using this base class. 18 * @deprecated in Drupal 8.3.x-dev and will be removed before Drupal 9.0.0. Use
19 * \Drupal\Tests\rest\Functional\ResourceTestBase and
20 * \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
21 * instead. Only retained for contributed module tests that may be using this
22 * base class.
17 */ 23 */
18 abstract class RESTTestBase extends WebTestBase { 24 abstract class RESTTestBase extends WebTestBase {
19 25
20 /** 26 /**
21 * The REST resource config storage. 27 * The REST resource config storage.