function LanguageConfigOverrideTest::testSaveExisting

Same name in other branches
  1. 9 core/modules/language/tests/src/Unit/Config/LanguageConfigOverrideTest.php \Drupal\Tests\language\Unit\Config\LanguageConfigOverrideTest::testSaveExisting()
  2. 8.9.x core/modules/language/tests/src/Unit/Config/LanguageConfigOverrideTest.php \Drupal\Tests\language\Unit\Config\LanguageConfigOverrideTest::testSaveExisting()
  3. 10 core/modules/language/tests/src/Unit/Config/LanguageConfigOverrideTest.php \Drupal\Tests\language\Unit\Config\LanguageConfigOverrideTest::testSaveExisting()

@covers ::save

File

core/modules/language/tests/src/Unit/Config/LanguageConfigOverrideTest.php, line 84

Class

LanguageConfigOverrideTest
@coversDefaultClass \Drupal\language\Config\LanguageConfigOverride @group Config @group language

Namespace

Drupal\Tests\language\Unit\Config

Code

public function testSaveExisting() : void {
    $this->cacheTagsInvalidator
        ->expects($this->once())
        ->method('invalidateTags')
        ->with([
        'config:config.test',
    ]);
    $this->configTranslation
        ->initWithData([]);
    $this->configTranslation
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.