->
method('get'
) ->
with('system.schema'
) ->
willReturn($this->keyValueStore
);
} /**
* @covers ::getAvailableUpdates
*/
public function testGetVersions() { $module_name = 'drupal\tests\core\update\under_test';
$update_registry =
new UpdateHookRegistry([],
$this->keyValueStore
);
// Only under_test_update_X - passes through the filter.
$expected =
[1, 20, 3000
];
$actual =
$update_registry->
getAvailableUpdates($module_name);
$this->
assertSame($expected,
$actual);
} /**
* @covers ::getInstalledVersion
* @covers ::getAllInstalledVersions
* @covers ::setInstalledVersion
* @covers ::deleteInstalledVersion
*/