mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
@ -1,5 +1,6 @@
|
||||
<?php namespace Tests;
|
||||
|
||||
use BookStack\Entities\Page;
|
||||
use BookStack\Notifications\ConfirmEmail;
|
||||
use BookStack\Auth\User;
|
||||
use BookStack\Settings\SettingService;
|
||||
@ -334,6 +335,17 @@ class AuthTest extends BrowserKitTest
|
||||
->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'));
|
||||
$this->login('admin@admin.com', 'password')
|
||||
->seePageUrlIs($page->getUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a login
|
||||
* @param string $email
|
||||
|
Reference in New Issue
Block a user