public function EntityExportTest::testExportAll in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_export/tests/src/Functional/EntityExportTest.php \Drupal\Tests\bibcite_export\Functional\EntityExportTest::testExportAll()
Test export all form.
@dataProvider exportDataProvider
File
- modules/
bibcite_export/ tests/ src/ Functional/ EntityExportTest.php, line 84
Class
- EntityExportTest
- Test for main export functions.
Namespace
Drupal\Tests\bibcite_export\FunctionalCode
public function testExportAll($id, $format) {
$this
->drupalLogin($this->user);
$this
->drupalGet('admin/content/bibcite/reference/export');
$page = $this
->getSession()
->getPage();
$page
->selectFieldOption('edit-format', $format);
$page
->pressButton('edit-submit');
$this
->assertSession()
->statusCodeEquals(200);
}