protected function LingotekFieldBodyBulkCancelTest::setUp in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 4.0.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.0.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.1.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.2.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.4.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.5.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.6.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.7.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
- 3.8.x tests/src/Functional/LingotekFieldBodyBulkCancelTest.php \Drupal\Tests\lingotek\Functional\LingotekFieldBodyBulkCancelTest::setUp()
Overrides LingotekTestBase::setUp
File
- tests/
src/ Functional/ LingotekFieldBodyBulkCancelTest.php, line 23
Class
- LingotekFieldBodyBulkCancelTest
- Tests cancelling a field using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create Article node types.
$type = $this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
node_add_body_field($type);
// Add a language.
ConfigurableLanguage::createFromLangcode('es')
->save();
$this
->drupalGet('admin/lingotek/settings');
$edit = [
'table[node_fields][enabled]' => 1,
'table[node_fields][profile]' => 'automatic',
];
$this
->submitForm($edit, 'Save', 'lingoteksettings-tab-configuration-form');
// This is a hack for avoiding writing different lingotek endpoint mocks.
\Drupal::state()
->set('lingotek.uploaded_content_type', 'body');
}