maskedQuoteIdToQuoteId = $objectManager->create(MaskedQuoteIdToQuoteIdInterface::class); $this->guestCartManagement = $objectManager->create(GuestCartManagementInterface::class); } public function testMaskedIdToQuoteId() { $maskedQuoteId = $this->guestCartManagement->createEmptyCart(); $quoteId = $this->maskedQuoteIdToQuoteId->execute($maskedQuoteId); self::assertGreaterThan(0, $quoteId); } public function testMaskedQuoteIdToQuoteIdForNonExistentQuote() { self::expectException(\Magento\Framework\Exception\NoSuchEntityException::class); $this->maskedQuoteIdToQuoteId->execute('test'); } }