protected function NodeTranslationUITest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/NodeTranslationUITest.php \Drupal\node\Tests\NodeTranslationUITest::setUp()
Sets up a Drupal site for running functional and integration tests.
Installs Drupal with the installation profile specified in \Drupal\simpletest\WebTestBase::$profile into the prefixed database.
Afterwards, installs any additional modules specified in the static \Drupal\simpletest\WebTestBase::$modules property of each class in the class hierarchy.
After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.
Overrides ContentTranslationTestBase::setUp
File
- core/
modules/ node/ src/ Tests/ NodeTranslationUITest.php, line 51 - Contains \Drupal\node\Tests\NodeTranslationUITest.
Class
- NodeTranslationUITest
- Tests the Node Translation UI.
Namespace
Drupal\node\TestsCode
protected function setUp() {
$this->entityTypeId = 'node';
$this->bundle = 'article';
parent::setUp();
// Ensure the help message is shown even with prefixed paths.
$this
->drupalPlaceBlock('help_block', array(
'region' => 'content',
));
// Display the language selector.
$this
->drupalLogin($this->administrator);
$edit = array(
'language_configuration[language_alterable]' => TRUE,
);
$this
->drupalPostForm('admin/structure/types/manage/article', $edit, t('Save content type'));
$this
->drupalLogin($this->translator);
}