You are here

public function EntityOperationsUnitTest::testDefineOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php \Drupal\Tests\views\Unit\Plugin\views\field\EntityOperationsUnitTest::testDefineOptions()

@covers ::defineOptions

File

core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php, line 88

Class

EntityOperationsUnitTest
@coversDefaultClass \Drupal\views\Plugin\views\field\EntityOperations @group Views

Namespace

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

Code

public function testDefineOptions() {
  $options = $this->plugin
    ->defineOptions();
  $this
    ->assertIsArray($options);
  $this
    ->assertArrayHasKey('destination', $options);
}