You are here

protected function TestBase::saveFieldStorageSettings in Double Field 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/TestBase.php \Drupal\Tests\double_field\Functional\TestBase::saveFieldStorageSettings()

Saves storage settings.

6 calls to TestBase::saveFieldStorageSettings()
DateTimezoneTest::setUp in tests/src/Functional/DateTimezoneTest.php
FieldTypeTest::testAllowedValuesValidation in tests/src/Functional/FieldTypeTest.php
Test allowed values validation.
FieldTypeTest::testFieldSettings in tests/src/Functional/FieldTypeTest.php
Test field settings.
FieldTypeTest::testFieldSettingsForm in tests/src/Functional/FieldTypeTest.php
Test field settings form.
FieldTypeTest::testFieldStorageSettings in tests/src/Functional/FieldTypeTest.php
Test field storage settings.

... See full list

File

tests/src/Functional/TestBase.php, line 159

Class

TestBase
Tests the creation of text fields.

Namespace

Drupal\Tests\double_field\Functional

Code

protected function saveFieldStorageSettings(array $settings) : void {
  $this->fieldStorage
    ->setSettings(NestedArray::mergeDeep($this->fieldStorage
    ->getSettings(), $settings));
  $this->fieldStorage
    ->save();
}