public function LocaleTranslationTest::testDestruct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/tests/src/Unit/LocaleTranslationTest.php \Drupal\Tests\locale\Unit\LocaleTranslationTest::testDestruct()
Tests for \Drupal\locale\LocaleTranslation::destruct().
File
- core/
modules/ locale/ tests/ src/ Unit/ LocaleTranslationTest.php, line 55 - Contains \Drupal\Tests\locale\Unit\LocaleTranslationTest.
Class
- LocaleTranslationTest
- @coversDefaultClass \Drupal\locale\LocaleTranslation @group locale
Namespace
Drupal\Tests\locale\UnitCode
public function testDestruct() {
$translation = new LocaleTranslation($this->storage, $this->cache, $this->lock, $this
->getConfigFactoryStub(), $this->languageManager, $this->requestStack);
// Prove that destruction works without errors when translations are empty.
$this
->assertAttributeEmpty('translations', $translation);
$translation
->destruct();
}