You are here

public function FileTest::testProcessMissingLoader in YAML Content 8

@covers ::process

File

tests/src/Unit/Plugin/yaml_content/process/FileTest.php, line 48

Class

FileTest
Test file processing.

Namespace

Drupal\Tests\yaml_content\Unit\Plugin\yaml_content\process

Code

public function testProcessMissingLoader() {
  $context = new ProcessingContext();
  $data = [];
  $this
    ->expectException(\Exception::class);
  $this
    ->expectExceptionMessage('Missing content loader context.');
  $this->filePlugin
    ->process($context, $data);
}