mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-05 04:54:53 +00:00
🔥 **Cleanup:** Removed obsolete .junie guideline files and MCP configuration.
✨ **Tests:** Added helper function `makeSignedNostrLoginEvent` for generating NIP-42 signed login events. Updated related tests in `Feature/Auth/NostrLoginTest.php` to use this helper. 🚀 **Livewire Testing:** Enhanced authorization checks and added specific creator-based mounts for `meetups.edit`. Improved tests for `MeetupMountTest` and `EditMeetupTest`. 🎨 **Style:** Standardized `request()->route()` to lowercase country codes across multiple Blade templates for consistency. 🛠️ **Config:** Updated `vite.config.js` formatting for improved readability in ignored paths.
This commit is contained in:
@@ -20,9 +20,17 @@ it('mounts lecturers.create when authenticated', function () {
|
||||
Livewire::test('lecturers.create')->assertStatus(200);
|
||||
});
|
||||
|
||||
it('mounts lecturers.edit when authenticated', function () {
|
||||
it('mounts lecturers.edit when authenticated as the lecturer creator', function () {
|
||||
$owner = actingAsUser();
|
||||
$lecturer = Lecturer::factory()->create(['created_by' => $owner->id]);
|
||||
|
||||
Livewire::test('lecturers.edit', ['lecturer' => $lecturer])->assertStatus(200);
|
||||
});
|
||||
|
||||
it('aborts lecturers.edit with 403 when authenticated user is not the creator', function () {
|
||||
actingAsUser();
|
||||
Livewire::test('lecturers.edit', ['lecturer' => $this->lecturer])->assertStatus(200);
|
||||
|
||||
Livewire::test('lecturers.edit', ['lecturer' => $this->lecturer])->assertStatus(403);
|
||||
});
|
||||
|
||||
it('mounts cities.create when authenticated', function () {
|
||||
|
||||
Reference in New Issue
Block a user