You are here

public function ViewModeTest::testisOverridden in Search API Pages 8

@dataProvider isOverriddenTestDataProvider

File

tests/src/Unit/ViewModeTest.php, line 332

Class

ViewModeTest
Class ViewModeTest.

Namespace

Drupal\Tests\search_api_page\Unit

Code

public function testisOverridden($input, $dataSourceId, $bundle, $expected) {
  $sut = new ViewMode($input);
  $actual = $sut
    ->isOverridden($dataSourceId, $bundle);
  $this
    ->assertEquals($expected, $actual);
}