32 lines
767 B
PHP
32 lines
767 B
PHP
<?php
|
|
|
|
namespace KupShop\I18nBundle\Tests;
|
|
|
|
use KupShop\KupShopBundle\Config;
|
|
|
|
class LanguageAwareRouterCSTest extends \DatabaseTestCase
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->switchLanguage('cs');
|
|
}
|
|
|
|
public function testCSPath()
|
|
{
|
|
$this->assertEquals('/vyrobci/', path('kupshop_catalog_producer_list'));
|
|
}
|
|
|
|
public function testCSUrlGenerator()
|
|
{
|
|
$client = static::createClient();
|
|
$client->request('GET', '/vyrobci/');
|
|
|
|
$cfg = Config::get();
|
|
|
|
$this->assertFileExists($cfg['Path']['data'].'tmp/test_engine/router_cs/url_generating_routes.php');
|
|
$this->assertFileExists($cfg['Path']['data'].'tmp/test_engine/router_cs/url_matching_routes.php');
|
|
}
|
|
}
|