mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-02 18:17:02 +09:00
24 lines
506 B
PHP
24 lines
506 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use function Tests\Helpers\browserBaseUrl;
|
|
|
|
$protectedPages = [
|
|
'/client',
|
|
'/client/profile',
|
|
'/order/service',
|
|
'/invoice',
|
|
'/support',
|
|
'/email',
|
|
];
|
|
|
|
foreach ($protectedPages as $path) {
|
|
it("redirects logged-out requests for {$path} to the client login", function () use ($path): void {
|
|
$page = visit(browserBaseUrl() . $path);
|
|
|
|
$page->assertPathBeginsWith('/login');
|
|
$page->assertSee('Login to Your Account');
|
|
});
|
|
}
|