public function testClearCacheForUrl() { $url = 'http://test.local'; $path = $this->manager->getCachedWsdlPath($url); $this->assertClearCache($path); $this->manager->clearCacheForUrl($url); }
/** * @param LifecycleEventArgs $eventArgs */ public function preRemove(LifecycleEventArgs $eventArgs) { $entity = $eventArgs->getEntity(); if ($entity instanceof MagentoSoapTransport && $entity->getWsdlUrl()) { $this->wsdlManager->clearCacheForUrl($entity->getWsdlUrl()); } }