You are here

public function DocumentManagerTest::testDocumentTypes in Forena Reports 8

File

tests/src/Unit/DocumentManagerTest.php, line 17

Class

DocumentManagerTest
@group Forena @require module forena @coversDefaultClass \Drupal\forena\DocManager

Namespace

Drupal\Tests\forena\Unit

Code

public function testDocumentTypes() {
  $types = $this
    ->documentManager()
    ->getDocTypes();
  $types = array_combine($types, $types);
  $this
    ->assertArrayHasKey('csv', $types);
  $this
    ->assertArrayHasKey('html', $types);
  $this
    ->assertArrayHasKey('xml', $types);
  $this
    ->assertArrayHasKey('doc', $types);
}