function it_normalizes_job_instance(JobInstance $jobinstance)
 {
     $jobinstance->getCode()->willReturn('product_export');
     $jobinstance->getLabel()->willReturn('Product export');
     $jobinstance->getConnector()->willReturn('myconnector');
     $jobinstance->getType()->willReturn('EXPORT');
     $jobinstance->getRawConfiguration()->willReturn(['delimiter' => ';']);
     $this->normalize($jobinstance)->shouldReturn(['code' => 'product_export', 'label' => 'Product export', 'connector' => 'myconnector', 'type' => 'EXPORT', 'configuration' => ['delimiter' => ';']]);
 }
Пример #2
0
 /**
  * Get the associated jobInstance label
  *
  * @return string
  */
 public function getLabel()
 {
     return $this->jobInstance->getLabel();
 }
 /**
  * {@inheritDoc}
  */
 public function getLabel()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getLabel', array());
     return parent::getLabel();
 }