You are here

public function AgreementEntityTest::testDefineOptions in Agreement 8.2

Same name and namespace in other branches
  1. 3.0.x tests/src/Unit/Plugin/views/field/AgreementEntityTest.php \Drupal\Tests\agreement\Unit\Plugin\views\field\AgreementEntityTest::testDefineOptions()

Asserts the default display option.

File

tests/src/Unit/Plugin/views/field/AgreementEntityTest.php, line 76

Class

AgreementEntityTest
Tests the agreement entity views field plugin.

Namespace

Drupal\Tests\agreement\Unit\Plugin\views\field

Code

public function testDefineOptions() {
  $expected = [
    'default' => [
      'label',
    ],
  ];
  $this
    ->assertEquals($expected, $this->plugin
    ->defineOptions()['display']);
}