2e2b42f96b
- Add user_id FK (nullable) to rumah_ibadah for ownership tracking - IbadahController: set user_id on store; enforce ownership on update/destroy - Add edit modals to map and data views (ibadah + miskin) - Popup and table row Edit buttons with per-record ownership check - 7 new tests covering ownership and full-field updates - Fix ExampleTest for auth-protected routes - Fix UserFactory missing email_verified_at column - Mark Plan 2 complete in missing_features.md; update README Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
360 B
PHP
20 lines
360 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
// use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
/**
|
|
* A basic test example.
|
|
*/
|
|
public function test_unauthenticated_root_redirects_to_login(): void
|
|
{
|
|
$response = $this->get('/');
|
|
|
|
$response->assertRedirect('/login');
|
|
}
|
|
}
|