class MetadataTest extends TestCase
{ public function testFromXml(): void
{ $manifest = Manifest::
createFromXmlFile(__DIR__ . '/../_fixtures/test-manifest.xml'
);
$metaData =
$manifest->
getMetadata();
static::
assertEquals('test',
$metaData->
getName());
static::
assertEquals('shopware AG',
$metaData->
getAuthor());
static::
assertEquals('(c) by shopware AG',
$metaData->
getCopyright());
static::
assertEquals('MIT',
$metaData->
getLicense());
static::
assertEquals('https://test.com/privacy',
$metaData->
getPrivacy());
static::
assertEquals('1.0.0',
$metaData->
getVersion());
static::
assertEquals('icon.png',
$metaData->
getIcon());
static::
assertEquals([ 'en-GB' => 'Swag App Test',
'de-DE' => 'Swag App Test',
],
$metaData->
getLabel());
static::
assertEquals([ 'en-GB' => 'Test for App System',