$extensions =
$test_extension_list->
getList();
$this->
assertCount(1,
$extensions);
$this->
assertEquals('test_name',
$extensions['test_name'
]->
getName());
} /**
* @covers ::getExtensionInfo
* @covers ::getAllInstalledInfo
*/
public function testGetExtensionInfo() { $test_extension_list =
$this->
setupTestExtensionList();
$test_extension_list->
setInstalledExtensions(['test_name'
]);
$info =
$test_extension_list->
getExtensionInfo('test_name'
);
$this->
assertEquals([ 'type' => 'test_extension',
'core' => '8.x',
'name' => 'test name',
'mtime' => 123456789,
],
$info);
} /**
* @covers ::getAllAvailableInfo
*/