jsonapi.install | 2 +- ...api_update_8001.php => drupal-8.jsonapi-jsonapi_update_8701.php} | 2 +- tests/src/Functional/Update/ReadOnlyModeUpdateTest.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jsonapi.install b/jsonapi.install index de1ea4e..ce576ac 100644 --- a/jsonapi.install +++ b/jsonapi.install @@ -57,7 +57,7 @@ function jsonapi_requirements($phase) { /** * Enable BC: default the new read-only mode to "off" on existing sites. */ -function jsonapi_update_8001() { +function jsonapi_update_8701() { $config_factory = \Drupal::configFactory(); $jsonapi_settings = $config_factory->getEditable('jsonapi.settings'); $jsonapi_settings->set('read_only', FALSE) diff --git a/tests/fixtures/update/drupal-8.jsonapi-jsonapi_update_8001.php b/tests/fixtures/update/drupal-8.jsonapi-jsonapi_update_8701.php similarity index 94% rename from tests/fixtures/update/drupal-8.jsonapi-jsonapi_update_8001.php rename to tests/fixtures/update/drupal-8.jsonapi-jsonapi_update_8701.php index 6a40bf2..783c57b 100644 --- a/tests/fixtures/update/drupal-8.jsonapi-jsonapi_update_8001.php +++ b/tests/fixtures/update/drupal-8.jsonapi-jsonapi_update_8701.php @@ -2,7 +2,7 @@ /** * @file - * Contains database additions for testing jsonapi_update_8001()'s update path. + * Contains database additions for testing jsonapi_update_8701()'s update path. * * @depends core/modules/system/tests/fixtures/update/drupal-8.bare.standard.php.gz */ diff --git a/tests/src/Functional/Update/ReadOnlyModeUpdateTest.php b/tests/src/Functional/Update/ReadOnlyModeUpdateTest.php index 7c6b26a..4b2c0cd 100644 --- a/tests/src/Functional/Update/ReadOnlyModeUpdateTest.php +++ b/tests/src/Functional/Update/ReadOnlyModeUpdateTest.php @@ -7,7 +7,7 @@ use Drupal\FunctionalTests\Update\UpdatePathTestBase; /** * Tests that existing sites have the new read-only mode to "off". * - * @see jsonapi_update_8001() + * @see jsonapi_update_8701() * @see https://www.drupal.org/project/jsonapi/issues/3039568 * * @group jsonapi @@ -25,12 +25,12 @@ class ReadOnlyModeUpdateTest extends UpdatePathTestBase { public function setDatabaseDumpFiles() { $this->databaseDumpFiles = [ DRUPAL_ROOT . '/core/modules/system/tests/fixtures/update/drupal-8.bare.standard.php.gz', - __DIR__ . '/../../../fixtures/update/drupal-8.jsonapi-jsonapi_update_8001.php', + __DIR__ . '/../../../fixtures/update/drupal-8.jsonapi-jsonapi_update_8701.php', ]; } /** - * Tests jsonapi_update_8001(). + * Tests jsonapi_update_8701(). */ public function testBcReadOnlyModeSettingAdded() { // Make sure we have the expected values before the update.