public function ExistenceCheckingTest::testDisableExistenceCheck in YAML Content 8
Confirm the existence check value can be disabled.
@depends testEnableExistenceCheck
@covers ::existenceCheck @covers ::setExistenceCheck
Parameters
\Drupal\yaml_content\ContentLoader\ContentLoader $content_loader: The ContentLoader service being tested.
File
- tests/
src/ Unit/ ContentLoader/ ExistenceCheckingTest.php, line 97
Class
- ExistenceCheckingTest
- Test the existence checking functionality of the ContentLoader class.
Namespace
Drupal\Tests\yaml_content\Unit\ContentLoaderCode
public function testDisableExistenceCheck(ContentLoader $content_loader) {
$content_loader
->setExistenceCheck(FALSE);
$this
->assertFalse($content_loader
->existenceCheck());
}