You are here

public function PaymentStatusesDisplayTest::testGetInfo in Payment 8.2

@covers ::getInfo

File

tests/src/Unit/Element/PaymentStatusesDisplayTest.php, line 79

Class

PaymentStatusesDisplayTest
@coversDefaultClass \Drupal\payment\Element\PaymentStatusesDisplay

Namespace

Drupal\Tests\payment\Unit\Element

Code

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