Files
ladill-woo-manager/tests/Feature/WooSignedOutTest.php
T
isaaccladandCursor 1edf5aad43
Deploy Ladill Woo Manager / deploy (push) Successful in 34s
Adopt the shared Ladill signed-out page for Woo Manager.
Logout now lands on the branded sign-out screen with Woo-specific copy instead of the minimal placeholder card.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 02:52:02 +00:00

42 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Tests\Feature;
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class WooSignedOutTest extends TestCase
{
use RefreshDatabase;
public function test_guest_sees_standard_signed_out_page(): void
{
$this->get(route('woo.signed-out'))
->assertOk()
->assertSee('Youre signed out', false)
->assertSee('Ladill Woo Manager', false)
->assertSee('manage orders, products, and stores', false)
->assertSee(route('sso.connect'), false)
->assertSee('Go to ladill.com', false);
}
public function test_authenticated_user_is_redirected_from_signed_out_page(): void
{
$this->actingAs(User::factory()->create())
->get(route('woo.signed-out'))
->assertRedirect(route('woo.dashboard'));
}
public function test_logout_redirects_to_signed_out_page(): void
{
$user = User::factory()->create();
$this->actingAs($user)
->post(route('logout'))
->assertRedirect(route('woo.signed-out'));
$this->assertGuest();
}
}