You are here

public function AmountTest::testDefineOptions in Currency 8.3

@covers ::defineOptions

File

tests/src/Unit/Plugin/views/field/AmountTest.php, line 173

Class

AmountTest
@coversDefaultClass \Drupal\currency\Plugin\views\field\Amount

Namespace

Drupal\Tests\currency\Unit\Plugin\views\field

Code

public function testDefineOptions() {
  foreach ($this->sut
    ->defineOptions() as $option) {
    $this
      ->assertIsArray($option);
    $this
      ->assertTrue(array_key_exists('default', $option) || array_key_exists('contains', $option));
  }
}