public function ImportTest::testSettingsImportForm in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 modules/bibcite_import/tests/src/Functional/ImportTest.php \Drupal\Tests\bibcite_import\Functional\ImportTest::testSettingsImportForm()
Test Settings form.
File
- modules/
bibcite_import/ tests/ src/ Functional/ ImportTest.php, line 84
Class
- ImportTest
- Test for main import functions.
Namespace
Drupal\Tests\bibcite_import\FunctionalCode
public function testSettingsImportForm() {
$this
->drupalLogin($this->user);
$this
->drupalGet('admin/config/bibcite/settings/import');
$page = $this
->getSession()
->getPage();
$page
->uncheckField('edit-contributor-deduplication');
$page
->uncheckField('edit-keyword-deduplication');
$page
->checkField('edit-contributor-deduplication');
$page
->checkField('edit-keyword-deduplication');
$page
->pressButton('edit-submit');
$this
->assertSession()
->statusCodeEquals(200);
}