You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
596 B
23 lines
596 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\Tests\CoreBundle\Controller;
|
|
|
|
use Chamilo\Tests\ChamiloTestTrait;
|
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|
|
|
class ExceptionControllerTest extends WebTestCase
|
|
{
|
|
use ChamiloTestTrait;
|
|
|
|
public function testError(): void
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/error');
|
|
$this->assertResponseIsSuccessful();
|
|
$this->assertStringContainsString('Something seems to have gone wrong', $client->getResponse()->getContent());
|
|
}
|
|
}
|
|
|