Fehlerprotokoll im Systemzustand, Bilder in Stellen- und Terminbeschreibungen (0.28.1)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m14s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m55s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m57s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m43s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m14s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m55s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m57s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m43s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c0595d42dd
commit
cf5b71cdd9
131 changed files with 601 additions and 323 deletions
|
|
@ -149,4 +149,19 @@ class StellenTest extends TestCase
|
|||
$this->actingAs($user)->post('/redaktion/stellen', ['title' => 'x'])->assertForbidden();
|
||||
$this->actingAs($user)->delete("/redaktion/stellen/{$posting->id}")->assertForbidden();
|
||||
}
|
||||
|
||||
public function test_images_can_be_used_in_the_description(): void
|
||||
{
|
||||
Storage::fake('uploads');
|
||||
$url = $this->actingAs($this->hr)->postJson('/redaktion/stellen/bilder', ['image' => UploadedFile::fake()->image('team.jpg', 1200, 800)])->assertOk()->json('url');
|
||||
$this->assertStringContainsString('stellen/', $url);
|
||||
|
||||
$this->post('/redaktion/stellen', [
|
||||
'title' => 'Mit Bild', 'employment' => 'full', 'contract' => 'permanent', 'apply_mode' => 'online', 'publish' => 'draft',
|
||||
'description' => '<p>Unser Team</p><p><img src="'.$url.'" alt="Team"></p>',
|
||||
])->assertSessionHasNoErrors();
|
||||
$this->assertStringContainsString('<img src="'.strtok($url, '?'), JobPosting::query()->where('title', 'Mit Bild')->sole()->description);
|
||||
|
||||
$this->actingAs(User::factory()->create())->postJson('/redaktion/stellen/bilder', ['image' => UploadedFile::fake()->image('x.jpg')])->assertForbidden();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue