You are here

public function AssetTest::testIsIndex in Mini site 8

Test Asset::isIndex().

@dataProvider dataProviderIsIndex @covers \Drupal\minisite\Asset::isIndex

File

tests/src/Functional/AssetTest.php, line 163

Class

AssetTest
Class AssetTest.

Namespace

Drupal\Tests\minisite\Functional

Code

public function testIsIndex($path, $is_index) {
  $instance = new Asset('node', $this->contentType, 1, Language::LANGCODE_DEFAULT, 'field_minisite_test', $path);
  $this
    ->assertEqual($instance
    ->isIndex(), $is_index);
}