Merge pull request 'List all slide types on the start page' (#14) from fix/home-slide-types into main
Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
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]);
|
||||
|
||||
Reference in new issue
Block a user