Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -16,16 +16,16 @@ use App\Entity\User;
*/
class AboutControllerTest extends ControllerBaseTest
{
public function testIndexAction()
public function testIndexAction(): void
{
$client = $this->getClientForAuthenticatedUser(User::ROLE_USER);
$this->assertAccessIsGranted($client, '/about');
$result = $client->getCrawler()->filter('ul.nav.nav-stacked li a');
$this->assertEquals(4, \count($result));
$result = $client->getCrawler()->filter('.content a.card-btn');
self::assertCount(4, $result);
$result = $client->getCrawler()->filter('div.box-body pre');
$this->assertEquals(1, \count($result));
$this->assertStringContainsString('MIT License', $result->text(null, true));
$result = $client->getCrawler()->filter('div.card-body.card_details');
self::assertCount(1, $result);
self::assertStringContainsString('GNU Affero General Public License v3.0', $result->text(null, true));
}
}