library/ServiceCaller.php
protected function callLocalService($serviceName)
    {
        if (!defined('TMP_PATH')) {
            define('TMP_PATH', $this->getTestConfig()->getTempDirectory());
        }

        $config = new ServiceConfig($this->getTestConfig()->getShopPath(), $this->getTestConfig()->getTempDirectory());
        $config->setShopEdition($this->getTestConfig()->getShopEdition());

        $serviceCaller = new ServiceFactory($config);
        $request = new Request($this->getParameters());
        $service = $serviceCaller->createService($serviceName);

        return $service->init($request);
    }
protected function callLocalService($serviceName)
    {
        if (!defined('TMP_PATH')) {
            define('TMP_PATH', $this->getTestConfig()->getTempDirectory());
        }

        $config = new ServiceConfig($this->getTestConfig()->getShopPath(), $this->getTestConfig()->getTempDirectory());
        $config->setShopEdition($this->getTestConfig()->getShopEdition());

        $serviceCaller = new ServiceFactory($config);
        $request = new Request($this->getParameters());
        $service = $serviceCaller->createService($serviceName);

        return $service->init($request);
    }
protected function callLocalService ( $ serviceName ) { if ( ! defined ( 'TMP_PATH' ) ) { define ( 'TMP_PATH' , $ this -> getTestConfig ( ) -> getTempDirectory ( ) ) ; } $ config = new ServiceConfig ( $ this -> getTestConfig ( ) -> getShopPath ( ) , $ this -> getTestConfig ( ) -> getTempDirectory ( ) ) ; $ config -> setShopEdition ( $ this -> getTestConfig ( ) -> getShopEdition ( ) ) ; $ serviceCaller = new ServiceFactory ( $ config ) ; $ request = new Request ( $ this -> getParameters ( ) ) ; $ service = $ serviceCaller -> createService ( $ serviceName ) ; return $ service -> init ( $ request ) ; }
Calls service on local server.

@param string $serviceName

@return mixed|null
Calls service on local server .