You are here

public function LanguageIntegrationTest::setUp in Search API 8

Overrides SearchApiBrowserTestBase::setUp

File

tests/src/Functional/LanguageIntegrationTest.php, line 28

Class

LanguageIntegrationTest
Tests the overall functionality of indexing specific logic.

Namespace

Drupal\Tests\search_api\Functional

Code

public function setUp() {
  parent::setUp();

  // Add extra languages.
  ConfigurableLanguage::createFromLangcode('nl')
    ->save();
  ConfigurableLanguage::createFromLangcode('xx-lolspeak')
    ->save();

  // Create an index and server to work with.
  $this
    ->getTestServer();
  $this
    ->getTestIndex();

  // Log in, so we can test all the things.
  $this
    ->drupalLogin($this->adminUser);
}