protected function UpdateHookRegistryTest::setUp in Drupal 10
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php \Drupal\Tests\Core\Update\UpdateHookRegistryTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Update/ UpdateHookRegistryTest.php, line 77
Class
- UpdateHookRegistryTest
- @coversDefaultClass \Drupal\Core\Update\UpdateHookRegistry @group Update
Namespace
Drupal\Tests\Core\UpdateCode
protected function setUp() : void {
parent::setUp();
$this->keyValueFactory = $this
->createMock(KeyValueFactoryInterface::class);
$this->keyValueStore = $this
->createMock(KeyValueStoreInterface::class);
$this->keyValueFactory
->method('get')
->with('system.schema')
->willReturn($this->keyValueStore);
}