<?php namespace Tests;
+use BookStack\Entities\Page;
use BookStack\Notifications\ConfirmEmail;
use BookStack\Auth\User;
use BookStack\Settings\SettingService;
->seeLink('Sign up');
}
+ public function test_login_redirects_to_initially_requested_url_correctly()
+ {
+ config()->set('app.url', 'http://localhost');
+ $page = Page::query()->first();
+
+ $this->visit($page->getUrl())
+ ->seePageUrlIs(baseUrl('/login'));
+ ->seePageUrlIs($page->getUrl());
+ }
+
/**
* Perform a login
* @param string $email