You are here

public function AssetTest::testAssetFromValues in Mini site 8

Test Asset::fromValues().

@dataProvider dataProviderAssetFromValues @covers \Drupal\minisite\Asset::fromValues

File

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

Class

AssetTest
Class AssetTest.

Namespace

Drupal\Tests\minisite\Functional

Code

public function testAssetFromValues($values, $expect_exception) {
  if ($expect_exception) {
    $this
      ->expectException(AssetException::class);
  }
  $instance = Asset::fromValues($values);
  $this
    ->assertNotNull($instance);
}