/**
* @internal
*
* @covers \Shopware\Core\Framework\Store\StoreException
*/
#[Package('merchant-services')]
class StoreExceptionTest extends TestCase
{ public function testCannotDeleteManaged(): void
{ $exception = StoreException::
cannotDeleteManaged('test-extension'
);
static::
assertEquals( 'Extension test-extension is managed by Composer and cannot be deleted',
$exception->
getMessage() );
static::
assertEquals('FRAMEWORK__STORE_CANNOT_DELETE_COMPOSER_MANAGED',
$exception->
getErrorCode());
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
} public function testExtensionThemeStillInUse(): void
{