Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Admin/LogonTest.php
Show All 12 Lines | |||||
class LogonTest extends TestCaseDusk | class LogonTest extends TestCaseDusk | ||||
{ | { | ||||
/** | /** | ||||
* {@inheritDoc} | * {@inheritDoc} | ||||
*/ | */ | ||||
public function setUp(): void | public function setUp(): void | ||||
{ | { | ||||
parent::setUp(); | parent::setUp(); | ||||
self::useAdminUrl(); | |||||
// This will set baseURL for all tests in this file | |||||
// If we wanted to visit both user and admin in one test | |||||
// we can also just call visit() with full url | |||||
Browser::$baseUrl = str_replace('//', '//admin.', \config('app.url')); | |||||
} | } | ||||
/** | /** | ||||
* Test menu on logon page | * Test menu on logon page | ||||
*/ | */ | ||||
public function testLogonMenu(): void | public function testLogonMenu(): void | ||||
{ | { | ||||
$this->browse(function (Browser $browser) { | $this->browse(function (Browser $browser) { | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |