function JsonApiUpdatePathTest::testUpdate9401
Tests adding retry-after header settings.
See also
File
-
core/
modules/ jsonapi/ tests/ src/ Functional/ Update/ JsonApiUpdatePathTest.php, line 35
Class
- JsonApiUpdatePathTest
- Tests adding retry-after header settings.
Namespace
Drupal\Tests\jsonapi\Functional\UpdateCode
public function testUpdate9401() {
$config = $this->config('jsonapi.settings');
$this->assertTrue($config->get('read_only'));
$this->assertNull($config->get('maintenance_header_retry_seconds'));
// Run updates.
$this->runUpdates();
$config = $this->config('jsonapi.settings');
$this->assertTrue($config->get('read_only'));
$header_settings = $config->get('maintenance_header_retry_seconds');
$this->assertSame(5, $header_settings['min']);
$this->assertSame(10, $header_settings['max']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.