$expected =
[];
$expected['module_a'
]['pending'
]['a'
] = 'Module A update A.';
$expected['module_a'
]['pending'
]['b'
] = 'Module A update B.';
$expected['module_a'
]['start'
] = 'a';
$expected['module_b'
]['pending'
]['a'
] = 'Module B update A.';
$expected['module_b'
]['start'
] = 'a';
$expected['theme_d'
]['pending'
]['b'
] = 'Theme D update B.';
$expected['theme_d'
]['pending'
]['c'
] = 'Theme D update C.';
$expected['theme_d'
]['start'
] = 'b';
$this->
assertEquals($expected,
$update_registry->
getPendingUpdateInformation());
} /**
* @covers ::getPendingUpdateInformation
*/
public function testGetPendingUpdateInformationWithExistingUpdates() { $this->
setupBasicExtensions();
$key_value =
$this->
prophesize(KeyValueStoreInterface::
class);
$key_value->
get('existing_updates',
[])->
willReturn(['module_a_post_update_a', 'theme_d_post_update_a', 'theme_d_post_update_b'
]);
$key_value =
$key_value->
reveal();