public function testLicenseCouldNotBeVerified(): void
{ $e = AppException::
licenseCouldNotBeVerified('UnlicensedApp'
);
static::
assertEquals(AppException::LICENSE_COULD_NOT_BE_VERIFIED,
$e->
getErrorCode());
} public function testInvalidConfiguration(): void
{ $e = AppException::
invalidConfiguration('InvalidlyConfiguredApp',
new AppNameError('InvalidlyConfiguredApp'
));
static::
assertEquals(AppException::INVALID_CONFIGURATION,
$e->
getErrorCode());
} public function testAppSecretRequiredForFeatures(): void
{ $e = AppException::
appSecretRequiredForFeatures('MyApp',
['Modules'
]);
static::
assertEquals(AppException::FEATURES_REQUIRE_APP_SECRET,
$e->
getErrorCode());
static::
assertEquals('App "MyApp" could not be installed/updated because it uses features Modules but has no secret',
$e->
getMessage());