static::
expectException(AppRegistrationException::
class);
static::
expectExceptionMessage('App registration for "test" failed: Unknown app'
);
$appRegistrationService->
registerApp($manifest, 'id', 's3cr3t-4cc3s-k3y', Context::
createDefaultContext());
} public function testThrowsAppRegistrationExceptionIfPrivateHandshakeFails(): void
{ $manifest = Manifest::
createFromXmlFile(__DIR__ . '/../_fixtures/manifest.xml'
);
$handshake =
new PrivateHandshake( 'https://shopware.swag',
's3cr3t',
'https://app.server/register',
'test',
'shop-id',
'6.5.2.0',
);
$registrationRequest =
$handshake->
assembleRequest();
$handshakeMock =
$this->
createMock(PrivateHandshake::
class);