protected function NodeTranslationUITest::doUninstallTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/NodeTranslationUITest.php \Drupal\node\Tests\NodeTranslationUITest::doUninstallTest()
Tests uninstalling content_translation.
1 call to NodeTranslationUITest::doUninstallTest()
- NodeTranslationUITest::testTranslationUI in core/
modules/ node/ src/ Tests/ NodeTranslationUITest.php - Tests the basic translation UI.
File
- core/
modules/ node/ src/ Tests/ NodeTranslationUITest.php, line 415 - Contains \Drupal\node\Tests\NodeTranslationUITest.
Class
- NodeTranslationUITest
- Tests the Node Translation UI.
Namespace
Drupal\node\TestsCode
protected function doUninstallTest() {
// Delete all the nodes so there is no data.
$nodes = Node::loadMultiple();
foreach ($nodes as $node) {
$node
->delete();
}
$language_count = count(\Drupal::configFactory()
->listAll('language.content_settings.'));
\Drupal::service('module_installer')
->uninstall([
'content_translation',
]);
$this
->rebuildContainer();
$this
->assertEqual($language_count, count(\Drupal::configFactory()
->listAll('language.content_settings.')), 'Languages have been fixed rather than deleted during content_translation uninstall.');
}