assertNoTranslation example

    // reverted by importing community translations.     $this->assertTranslation($config_name, 'English test', 'de');
  }

  /** * Tests deleting community translations of shipped configuration. */
  public function testLocaleDeleteTranslation() {
    $config_name = 'locale_test.translation';

    $this->deleteLocaleTranslationData($config_name, 'test', 'English test', 'de');
    $this->assertNoTranslation($config_name, 'de');
  }

  /** * Sets up a configuration string without a translation. * * The actual configuration is already available by installing locale_test * module, as it is done in LocaleConfigSubscriberTest::setUp(). This sets up * the necessary source string and verifies that everything is as expected to * avoid false positives. * * @param string $config_name * The configuration name. * @param string $key * The configuration key. * @param string $source * The source string. * @param string $langcode * The language code. */
Home | Imprint | This part of the site doesn't use cookies.