rawBaseUrl = $baseUrl; $testServerUrl = getenv('BEHAT_SERVER_URL'); if ($testServerUrl !== false) { $this->rawBaseUrl = rtrim($testServerUrl, '/'); } $this->__tConstruct($this->rawBaseUrl . '/ocs/', ['admin', 'admin'], '123456'); } /** * @BeforeSuite */ public static function addFilesToSkeleton() { } /** * @Given /^acting as user "([^"]*)"$/ */ public function actingAsUser($user) { $this->cookieJar = new CookieJar(); $this->loggingInUsingWebAs($user); $this->asAn($user); } public function getBaseUrl(): string { return $this->rawBaseUrl; } public function getCookieJar(): CookieJar { return $this->cookieJar; } public function getReqestToken(): string { return $this->requestToken; } public function getCurrentUser(): string { return $this->currentUser; } }