Merge pull request 'List all slide types on the start page' (#14) from fix/home-slide-types into main
CI / Deploy / test (push) Successful in 50s
CI / Deploy / deploy (push) Successful in 3s

Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
gnilebein committed 2026-11-07 16:30:26 +01:00
commit 187af50bcf
4 files changed
+41 -7

No files matched your search

@@ -3,6 +3,7 @@ declare(strict_types=1);
namespace App\Test\TestCase\Controller;
use App\Model\Entity\Slide;
use App\Test\TestCase\PlenarioTestTrait;
use Cake\Cache\Cache;
use Cake\Core\Configure;
@@ -42,6 +43,15 @@ class HomeControllerTest extends TestCase
$this->assertResponseContains('Teilnahme-Code');
}
public function testIndexListsAllSlideTypes(): void
{
$this->get('/');
foreach (Slide::typeLabels() as $type => $label) {
$this->assertResponseContains('type-card--' . $type, $type);
$this->assertResponseContains(h($label), $type);
}
}
public function testCreateWithValidMathCaptchaSendsAdminMail(): void
{
$this->session(['Captcha.math.create' => 7]);