You are here

public function LanguageConfigOverrideTest::testSaveNew in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/tests/src/Unit/Config/LanguageConfigOverrideTest.php \Drupal\Tests\language\Unit\Config\LanguageConfigOverrideTest::testSaveNew()

@covers ::save

File

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

Class

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

Namespace

Drupal\Tests\language\Unit\Config

Code

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