function RestLoginHttpTest::setUp
Same name and namespace in other branches
- 11.x core/modules/rest/tests/src/Functional/RestLoginHttpTest.php \Drupal\Tests\rest\Functional\RestLoginHttpTest::setUp()
File
-
core/
modules/ rest/ tests/ src/ Functional/ RestLoginHttpTest.php, line 60
Class
- RestLoginHttpTest
- Tests login and password reset via direct HTTP.
Namespace
Drupal\Tests\rest\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->cookies = new CookieJar();
$encoders = [
new JsonEncoder(),
new XmlEncoder(),
];
$this->serializer = new Serializer([], $encoders);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.