Update to Drupal 8.2.4. For more information, see https://www.drupal.org/project/drupal/releases/8.2.4
This commit is contained in:
parent
0a95b8440e
commit
8544b60b39
284 changed files with 12980 additions and 3199 deletions
|
|
@ -10,6 +10,7 @@ use GuzzleHttp\Cookie\CookieJar;
|
|||
use Psr\Http\Message\ResponseInterface;
|
||||
use Symfony\Component\Serializer\Encoder\JsonEncoder;
|
||||
use Symfony\Component\Serializer\Encoder\XmlEncoder;
|
||||
use Drupal\hal\Encoder\JsonEncoder as HALJsonEncoder;
|
||||
use Symfony\Component\Serializer\Serializer;
|
||||
|
||||
/**
|
||||
|
|
@ -19,6 +20,13 @@ use Symfony\Component\Serializer\Serializer;
|
|||
*/
|
||||
class UserLoginHttpTest extends BrowserTestBase {
|
||||
|
||||
/**
|
||||
* Modules to install.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = ['hal'];
|
||||
|
||||
/**
|
||||
* The cookie jar.
|
||||
*
|
||||
|
|
@ -39,7 +47,7 @@ class UserLoginHttpTest extends BrowserTestBase {
|
|||
protected function setUp() {
|
||||
parent::setUp();
|
||||
$this->cookies = new CookieJar();
|
||||
$encoders = [new JsonEncoder(), new XmlEncoder()];
|
||||
$encoders = [new JsonEncoder(), new XmlEncoder(), new HALJsonEncoder()];
|
||||
$this->serializer = new Serializer([], $encoders);
|
||||
}
|
||||
|
||||
|
|
@ -90,7 +98,7 @@ class UserLoginHttpTest extends BrowserTestBase {
|
|||
/** @var \Drupal\Core\Extension\ModuleInstaller $module_installer */
|
||||
$module_installer = $this->container->get('module_installer');
|
||||
$module_installer->install(['serialization']);
|
||||
$formats = ['json', 'xml'];
|
||||
$formats = ['json', 'xml', 'hal_json'];
|
||||
}
|
||||
else {
|
||||
// Without the serialization module only JSON is supported.
|
||||
|
|
|
|||
Reference in a new issue