function ConfigEntityBaseUnitTest::setUpMockUuidService
Reinitializes the UUID service as a mock object.
1 call to ConfigEntityBaseUnitTest::setUpMockUuidService()
- ConfigEntityBaseUnitTest::testCreateDuplicate in core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php - Tests create duplicate.
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityBaseUnitTest.php, line 210
Class
Namespace
Drupal\Tests\Core\Config\EntityCode
protected function setUpMockUuidService() : void {
$this->uuid = $this->createMock(UuidInterface::class);
\Drupal::getContainer()->set('uuid', $this->uuid);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.