You are here

public function EntityExportTest::testExportUrl in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_export/tests/src/Functional/EntityExportTest.php \Drupal\Tests\bibcite_export\Functional\EntityExportTest::testExportUrl()

Test export URL's.

@dataProvider exportDataProvider

File

modules/bibcite_export/tests/src/Functional/EntityExportTest.php, line 52

Class

EntityExportTest
Test for main export functions.

Namespace

Drupal\Tests\bibcite_export\Functional

Code

public function testExportUrl($id, $format, $expected_result) {
  $this
    ->drupalLogin($this->user);
  $text = $this
    ->drupalGet(sprintf('bibcite/export/%s/bibcite_reference/%s', $format, $id));
  $this
    ->assertEquals(trim($expected_result), trim($text));
}