You are here

public function ExistenceCheckingTest::testEnableExistenceCheck in YAML Content 8

Confirm the existence check value can be enabled.

@depends testExistenceCheckDefault

@covers ::existenceCheck @covers ::setExistenceCheck

Parameters

\Drupal\yaml_content\ContentLoader\ContentLoader $content_loader: The ContentLoader service being tested.

Return value

\Drupal\yaml_content\ContentLoader\ContentLoader The ContentLoader service being tested.

File

tests/src/Unit/ContentLoader/ExistenceCheckingTest.php, line 78

Class

ExistenceCheckingTest
Test the existence checking functionality of the ContentLoader class.

Namespace

Drupal\Tests\yaml_content\Unit\ContentLoader

Code

public function testEnableExistenceCheck(ContentLoader $content_loader) {
  $content_loader
    ->setExistenceCheck();
  $this
    ->assertTrue($content_loader
    ->existenceCheck());
  return $content_loader;
}