You are here

public function FieldFormatterTest::testFormatters in Forena Reports 8

Test call to make sure we get a list.

File

tests/src/Unit/FieldFormatterTest.php, line 34

Class

FieldFormatterTest
Test CSV @group Forena @require module forena @coversDefaultClass \Drupal\forena\FrxPlugin\FieldFormatter\Formatter

Namespace

Drupal\Tests\forena\Unit

Code

public function testFormatters() {
  $formatters = $this->formatter
    ->formats();

  // Check to make sure we have at least one of the formatters.
  $this
    ->assertArrayHasKey('iso_date', $formatters);
}