Ejemplo n.º 1
0
 public function _before()
 {
     $this->manager = \Mockery::mock('Indigo\\Queue\\Manager\\ManagerInterface');
     $this->manager->shouldReceive('getPayload')->andReturn(['closure' => serialize(new SerializableClosure(function () {
         return true;
     }))]);
 }
 protected function getVendor($hipayId)
 {
     if ($hipayId == $this->operator->getHipayId()) {
         return $this->operator;
     }
     if ($hipayId == $this->technical->getHipayId()) {
         return $this->technical;
     }
     return $this->vendorManager->findByHipayId($hipayId);
 }
Ejemplo n.º 3
0
 /**
  * @throws \Maiorano\Shortcodes\Exceptions\RegisterException
  */
 private function setupManager()
 {
     $this->manager = new ShortcodeManager();
     foreach ($this->config['tags'] as $tag) {
         $shortcode = $this->buildShortcode($tag);
         $this->manager->register($shortcode);
     }
 }
Ejemplo n.º 4
0
 /**
  * Using extensions
  *
  * @param string $name Extension name
  * @param array $args Arguments of the extension
  */
 public function __call($name, array $args)
 {
     return $this->extensions->call($this, $name, $args);
 }