function InstallerTranslationDownloadTest::testCoreProfileTranslationsAreNotDownloaded

Same name and namespace in other branches
  1. main core/tests/Drupal/KernelTests/Core/Installer/InstallerTranslationDownloadTest.php \Drupal\KernelTests\Core\Installer\InstallerTranslationDownloadTest::testCoreProfileTranslationsAreNotDownloaded()

Tests that translations are not downloaded for core profiles.

File

core/tests/Drupal/KernelTests/Core/Installer/InstallerTranslationDownloadTest.php, line 182

Class

InstallerTranslationDownloadTest
Tests that profile translations are downloaded by the installer.

Namespace

Drupal\KernelTests\Core\Installer

Code

public function testCoreProfileTranslationsAreNotDownloaded() : void {
  $this->installParameters['parameters']['profile'] = 'testing';
  install_drupal($this->classLoader, $this->installParameters);
  $this->assertCount(2, $this->requests);
  $this->assertStringStartsWith("HEAD drupal-", $this->requests[0]);
  $this->assertStringStartsWith("GET drupal-", $this->requests[1]);
}

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