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.
30 lines
693 B
30 lines
693 B
![]()
4 years ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
|
||
|
namespace Chamilo\Tests\CoreBundle\Controller\Admin;
|
||
|
|
||
|
use Chamilo\Tests\ChamiloTestTrait;
|
||
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||
|
|
||
|
class PluginControllerTest extends WebTestCase
|
||
|
{
|
||
|
use ChamiloTestTrait;
|
||
|
|
||
|
public function testIndex(): void
|
||
|
{
|
||
|
$client = static::createClient();
|
||
|
$admin = $this->getUser('admin');
|
||
|
$client->loginUser($admin);
|
||
|
|
||
|
$client->request('GET', '/plugins/');
|
||
|
$this->assertResponseIsSuccessful();
|
||
|
|
||
|
$content = (string) $client->getResponse()->getContent();
|
||
|
|
||
|
$this->assertStringContainsString('Plugin', $content);
|
||
|
}
|
||
|
}
|