You are here

public function CurrencySignTest::testGetInfo in Currency 8.3

@covers ::getInfo

File

tests/src/Unit/Element/CurrencySignTest.php, line 103

Class

CurrencySignTest
@coversDefaultClass \Drupal\currency\Element\CurrencySign

Namespace

Drupal\Tests\currency\Unit\Element

Code

public function testGetInfo() {
  $info = $this->sut
    ->getInfo();
  $this
    ->assertIsArray($info);
  foreach ($info['#element_validate'] as $callback) {
    $this
      ->assertTrue(is_callable($callback));
  }
  foreach ($info['#process'] as $callback) {
    $this
      ->assertTrue(is_callable($callback));
  }
}