protected function ImportPartialFormTest::setUp in Tome 8
Overrides BrowserTestBase::setUp
File
- modules/
tome_sync/ tests/ src/ Functional/ ImportPartialFormTest.php, line 43
Class
- ImportPartialFormTest
- Tests that the import partial form works.
Namespace
Drupal\Tests\tome_sync\FunctionalCode
protected function setUp() {
parent::setUp();
// Note: The format for ::writeSettings is really weird.
$this
->writeSettings([
'settings' => [
'tome_content_directory' => (object) [
'value' => $this->siteDirectory . '/files/tome/content',
'required' => TRUE,
],
],
]);
$this
->createContentType([
'type' => 'article',
]);
$this
->drupalLogin($this
->createUser([
'use tome sync',
'synchronize configuration',
]));
$this->fileSystem = \Drupal::service('file_system');
}