26 lines
522 B
PHP
26 lines
522 B
PHP
<?php
|
|
|
|
namespace KupShop\KupShopBundle\Tests;
|
|
|
|
class TranslatedRouteTest extends \DatabaseTestCase
|
|
{
|
|
/**
|
|
* @dataProvider data_routes
|
|
*/
|
|
public function testTranslatedRoute(string $route, string $url): void
|
|
{
|
|
$this->assertEquals(
|
|
path($route),
|
|
$url
|
|
);
|
|
}
|
|
|
|
public function data_routes(): array
|
|
{
|
|
return [
|
|
['kupshop_content_cart_cart_1', '/kosik/'],
|
|
['kupshop_content_articles_articles', '/clanky/'],
|
|
];
|
|
}
|
|
}
|