mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
42 lines
880 B
PHP
42 lines
880 B
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Chill\MainBundle\Tests\Routing\Loader;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
|
|
|
/**
|
|
* Test the route loader.
|
|
*
|
|
* @internal
|
|
* @coversNothing
|
|
*/
|
|
final class RouteLoaderTest extends KernelTestCase
|
|
{
|
|
private $router;
|
|
|
|
public function setUp(): void
|
|
{
|
|
self::bootKernel();
|
|
$this->router = self::$kernel->getContainer()->get('router');
|
|
}
|
|
|
|
/**
|
|
* Test that the route loader loads at least homepage.
|
|
*/
|
|
public function testRouteFromMainBundleAreLoaded()
|
|
{
|
|
$homepage = $this->router->getRouteCollection()->get('chill_main_homepage');
|
|
|
|
$this->assertNotNull($homepage);
|
|
}
|
|
}
|