Skip to content

Commit

Permalink
phalcon#15067 - Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aziz Muzafarov committed Nov 7, 2021
1 parent fffe138 commit 5b90c0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/Mvc/Router/Route/GetRoutePathsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Phalcon\Tests\Integration\Mvc\Router\Route;

use IntegrationTester;
use Phalcon\Mvc\Router\Route;

/**
* Class GetRoutePathsCest
Expand All @@ -29,6 +30,11 @@ class GetRoutePathsCest
public function mvcRouterRouteGetRoutePaths(IntegrationTester $I)
{
$I->wantToTest('Mvc\Router\Route - getRoutePaths()');
$I->skipTest('Need implementation');

$arrayDefinition = ["controller" => 'FooBar', "action" => 'baz'];
$stringDefinition = "FooBar::baz";

$I->assertEquals($arrayDefinition, Route::getRoutePaths($arrayDefinition));
$I->assertEquals($arrayDefinition, Route::getRoutePaths($stringDefinition));
}
}

0 comments on commit 5b90c0c

Please sign in to comment.