protected function LingotekIntelligenceMetadataTranslationTest::setupResources in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupResources()
- 3.3.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupResources()
- 3.4.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupResources()
- 3.5.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupResources()
- 3.7.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupResources()
- 3.8.x tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekIntelligenceMetadataTranslationTest::setupResources()
Setup test resources for the test.
1 call to LingotekIntelligenceMetadataTranslationTest::setupResources()
- LingotekIntelligenceMetadataTranslationTest::setUp in tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php
File
- tests/
src/ Functional/ LingotekIntelligenceMetadataTranslationTest.php, line 826
Class
- LingotekIntelligenceMetadataTranslationTest
- Tests if intelligence metadata is used when uploading and updating content.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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();
}