$handshakeFactory->
expects(static::
never()) ->
method('create'
);
$appRegistrationService =
$this->
createAppRegistrationService();
$appRegistrationService->
registerApp($manifest, 'id', 's3cr3t-4cc3s-k3y', Context::
createDefaultContext());
} public function testThrowsAppRegistrationExceptionIfStoreHandshakeFails(): void
{ $manifest = Manifest::
createFromXmlFile(__DIR__ . '/../_fixtures/manifest.xml'
);
$handshake =
new StoreHandshake( 'https://shopware.swag',
'http://app.server/register',
'test',
'shop-id',
$this->
createMock(StoreClient::
class),
'6.5.2.0',
);
$registrationRequest =
$handshake->
assembleRequest();
$handshakeMock =
$this->
createMock(StoreHandshake::
class);