reportUrlProvider = $objectManager->get(ReportUrlProvider::class); $this->flagManager = $objectManager->get(FlagManager::class); } /** * @magentoDbIsolation enabled */ public function testGetUrlWhenSubscriptionUpdateIsRunning() { $this->flagManager ->saveFlag( SubscriptionUpdateHandler::PREVIOUS_BASE_URL_FLAG_CODE, 'https://previous.example.com/' ); $this->expectException(SubscriptionUpdateException::class); $this->reportUrlProvider->getUrl(); } }