feat: send replies to assignment mailings to the travel management inbox

This commit is contained in:
fromme committed 2026-11-12 12:37:35 +01:00
1 parent 74080b0488
commit 2c51ddf86f
5 files changed
+13 -9

No files matched your search

@@ -38,8 +38,6 @@ class AssignmentMailingControllerTest extends WebTestCase
private JobProfile $jobProfile;
private User $sender;
protected function setUp(): void
{
$this->client = static::createClient(server: ['HTTPS' => true]);
@@ -220,8 +218,8 @@ class AssignmentMailingControllerTest extends WebTestCase
$this->assertSame('/administrative/assignment', $this->client->getResponse()->headers->get('HX-Redirect'));
$this->assertEmailCount(1);
$this->assertSame('Hallo Anna', trim((new Crawler($this->getMailerMessage()->getHtmlBody()))->filter('p')->first()->text()));
// answers reach the manager who sent it
$this->assertSame($this->sender->getEmail(), $this->getMailerMessage()->getReplyTo()[0]->getAddress());
// answers reach the travel management inbox, not the manager who sent it
$this->assertSame('[email protected]', $this->getMailerMessage()->getReplyTo()[0]->getAddress());
// alone in the mailing, so nobody to list
$this->assertStringNotContainsString('Deine Kolleg:innen', (string) $this->getMailerMessage()->getHtmlBody());
@@ -399,7 +397,6 @@ class AssignmentMailingControllerTest extends WebTestCase
$this->entityManager->flush();
$this->client->loginUser($user);
$this->sender = $user;
}
private function assignment(string $hotel): Assignment