You are here

protected function LingotekSettingsTabUtilitiesFormTest::setupResources in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 4.0.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  2. 3.0.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  3. 3.1.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  4. 3.2.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  5. 3.3.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  6. 3.4.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  7. 3.5.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  8. 3.7.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()
  9. 3.8.x tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php \Drupal\Tests\lingotek\Functional\Form\LingotekSettingsTabUtilitiesFormTest::setupResources()

Setup test resources for the test.

1 call to LingotekSettingsTabUtilitiesFormTest::setupResources()
LingotekSettingsTabUtilitiesFormTest::setUp in tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php

File

tests/src/Functional/Form/LingotekSettingsTabUtilitiesFormTest.php, line 79

Class

LingotekSettingsTabUtilitiesFormTest
Tests the Lingotek utilities settings form.

Namespace

Drupal\Tests\lingotek\Functional\Form

Code

protected function setupResources() {
  $config = \Drupal::configFactory()
    ->getEditable('lingotek.settings');
  $config
    ->set('account.resources.community', [
    'test_community' => 'Test community',
    'test_community2' => 'Test community 2',
  ]);
  $config
    ->set('account.resources.project', [
    'test_project' => 'test_project',
    'test_project2' => 'test_project 2',
  ]);
  $config
    ->set('account.resources.vault', [
    'test_vault' => 'test_vault',
    'test_vault2' => 'test_vault 2',
  ]);
  $config
    ->set('account.resources.workflow', [
    'test_workflow' => 'test_workflow',
    'test_workflow2' => 'test_workflow 2',
  ]);
  $config
    ->set('account.resources.filter', [
    'test_filter' => 'test_filter',
    'test_filter2' => 'test_filter 2',
    'test_filter3' => 'test_filter 3',
  ]);
  $config
    ->save();
}