Sicherheitsupdate nach Audit (0.29.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a37895a16a
commit
f1202bea08
226 changed files with 1952 additions and 450 deletions
|
|
@ -5,6 +5,7 @@ namespace Tests\Feature\Stellen;
|
|||
use App\Models\Role;
|
||||
use App\Models\User;
|
||||
use App\Notifications\PortalNotification;
|
||||
use App\Plugins\PluginAccess;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
|
@ -177,4 +178,25 @@ class StellenTest extends TestCase
|
|||
->where('posting.apply_mode', 'email')->where('posting.apply_email', 'bewerbung@firma.de')->where('canApply', false));
|
||||
$this->post("/stellen/{$posting->id}/bewerben", ['message' => 'x'])->assertNotFound();
|
||||
}
|
||||
|
||||
public function test_posting_editors_cannot_make_themselves_contact_to_read_applications(): void
|
||||
{
|
||||
$this->actingAs($this->hr)->post('/redaktion/stellen', [
|
||||
'title' => 'Selbst', 'employment' => 'full', 'contract' => 'permanent', 'apply_mode' => 'online', 'publish' => 'draft', 'contact_id' => $this->hr->id,
|
||||
])->assertSessionHasErrors('contact_id');
|
||||
}
|
||||
|
||||
public function test_excluded_roles_are_not_notified_about_new_postings(): void
|
||||
{
|
||||
Notification::fake();
|
||||
$external = Role::query()->create(['name' => 'Extern']);
|
||||
app(PluginAccess::class)->exclude('stellen', [$external->id]);
|
||||
$guest = User::factory()->withRoles([$external])->create();
|
||||
$staff = User::factory()->create();
|
||||
|
||||
app(Announcer::class)->announceIfDue($this->posting());
|
||||
|
||||
Notification::assertSentTo($staff, PortalNotification::class);
|
||||
Notification::assertNotSentTo($guest, PortalNotification::class);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue