createPoll('Retro', 'owner@example.org'); $this->assertTrue((new PollMailer())->sendSafely('expiryReminder', [$poll, 'https://example.org/admin/x'])); $this->assertMailCount(1); $this->assertMailContainsAttachment('logo.png'); // The logo is referenced by Content-ID, not by a URL that images-off clients would block. $this->assertMailContainsHtml('src="cid:' . PollMailer::LOGO_CID . '"'); // Brand and text colors as on the web (--text, --primary, --muted), not the old off-by-a-bit values. $this->assertMailContainsHtml('PlenarIO'); $this->assertMailContainsHtml('color:#5d6280'); $this->assertMailContainsHtml('background:#f5f6fb'); } }