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); }
/** * @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); } }
/** * 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); }