public function getBaseUrl()

in src/TestUtils/GcloudWrapper/AppEngine.php [216:237]


    public function getBaseUrl($service = 'default')
    {
        if (!$this->deployed) {
            $this->errorLog('The app has not been deployed.');
        }
        if ($service === 'default') {
            $url = sprintf(
                'https://%s-dot-%s.appspot.com',
                $this->version,
                $this->project
            );
        } else {
            $url = sprintf(
                'https://%s-dot-%s-dot-%s.appspot.com',
                $this->version,
                $service,
                $this->project
            );
        }

        return $url;
    }