public function testUnregisterProcessor() { $fooType = ProcessorRegistry::TYPE_IMPORT; $fooEntityName = 'foo_entity_name'; $fooAlias = 'foo_processor_alias'; $fooProcessor = $this->getMock('Oro\\Bundle\\ImportExportBundle\\Processor\\ProcessorInterface'); $barType = ProcessorRegistry::TYPE_EXPORT; $barEntityName = 'bar_entity_name'; $barAlias = 'bar_processor_alias'; $barProcessor = $this->getMock('Oro\\Bundle\\ImportExportBundle\\Processor\\ProcessorInterface'); $this->registry->registerProcessor($fooProcessor, $fooType, $fooEntityName, $fooAlias); $this->registry->registerProcessor($barProcessor, $barType, $barEntityName, $barAlias); $this->registry->unregisterProcessor($fooType, $fooEntityName, $fooAlias); $this->assertAttributeEquals([$fooType => [], $barType => [$barAlias => $barProcessor]], 'processors', $this->registry); $this->assertAttributeEquals([$fooEntityName => [$fooType => []], $barEntityName => [$barType => [$barAlias => $barProcessor]]], 'processorsByEntity', $this->registry); }