public function testRespectingSupportMethod()
 {
     $autocomplete = new OrderAutocomplete($this->getLogger());
     $autocomplete->addStrategy($this->getStrategy(false));
     $autocomplete->autocomplete($order = new Order(), $this->configuration);
     $this->assertNull($order->getOrderId());
 }
 /**
  * @param LoggerInterface $logger
  *
  * @return OrderAutocompleteInterface
  */
 public function build(LoggerInterface $logger)
 {
     $orderAutocomplete = new OrderAutocomplete($logger);
     foreach ($this->getStrategies($logger) as $strategy) {
         $orderAutocomplete->addStrategy($strategy);
     }
     return $orderAutocomplete;
 }