You are here

public function FieldTest::testClickSortWithOutConfiguredColumn in Zircon Profile 8

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

@dataProvider providerSortOrders

Parameters

string $order: The sort order.

File

core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php, line 299
Contains \Drupal\Tests\views\Unit\Plugin\field\FieldTest.

Class

FieldTest
@coversDefaultClass \Drupal\views\Plugin\views\field\Field @group views

Namespace

Drupal\Tests\views\Unit\Plugin\field

Code

public function testClickSortWithOutConfiguredColumn($order) {
  $definition = [
    'entity_type' => 'test_entity',
    'field_name' => 'title',
  ];
  $handler = new Field([], 'field', $definition, $this->entityManager, $this->formatterPluginManager, $this->fieldTypePluginManager, $this->languageManager, $this->renderer);
  $handler->view = $this->executable;
  $this->entityManager
    ->expects($this
    ->never())
    ->method('getFieldStorageDefinitions');
  $handler
    ->clickSort($order);
}