mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-27 11:58:11 +00:00
(redirect to /concerts/new instead of /concerts)
This commit is contained in:
@@ -21,6 +21,6 @@ class LoginController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect('/backstage/concerts');
|
return redirect('/backstage/concerts/new');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class PromoterLoginTest extends DuskTestCase
|
|||||||
->type('email', 'jane@example.com')
|
->type('email', 'jane@example.com')
|
||||||
->type('password', 'super-secret-password')
|
->type('password', 'super-secret-password')
|
||||||
->press('Log in')
|
->press('Log in')
|
||||||
->assertPathIs('/backstage/concerts');
|
->assertPathIs('/backstage/concerts/new');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class PromoterLoginTest extends TestCase
|
|||||||
'password' => 'super-secret-password',
|
'password' => 'super-secret-password',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$response->assertRedirect('/backstage/concerts');
|
$response->assertRedirect('/backstage/concerts/new');
|
||||||
$this->assertTrue(Auth::check());
|
$this->assertTrue(Auth::check());
|
||||||
$this->assertTrue(Auth::user()->is($user));
|
$this->assertTrue(Auth::user()->is($user));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user