Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test showing that actions ending on 'ies' get pluralized wrongly

  • Loading branch information...
commit d430323d63055115e27c8b279d2b199a5060c65a 1 parent ee75db5
@asm89 asm89 authored
View
3  Tests/Fixtures/Controller/UsersController.php
@@ -98,4 +98,7 @@ public function getUserVoteAction(Request $request, $slug, $id)
public function getUserFoosAction($slug, Request $request)
{} // [GET] /users/{slug}/foos
+
+ public function getCategoriesAction()
+ {} // [GET] /categories
}
View
5 Tests/Fixtures/Etalon/users_controller.yml
@@ -97,3 +97,8 @@ get_user_foos:
method: GET
pattern: /users/{slug}/foos.{_format}
controller: ::getUserFoosAction
+
+get_categories:
+ method: GET
+ pattern: /categories.{_format}
+ controller: ::getCategoriesAction
View
2  Tests/Routing/Loader/RestRouteLoaderTest.php
@@ -30,7 +30,7 @@ public function testUsersFixture()
$etalonRoutes = $this->loadEtalonRoutesInfo('users_controller.yml');
$this->assertTrue($collection instanceof RestRouteCollection);
- $this->assertEquals(25, count($collection->all()));
+ $this->assertEquals(26, count($collection->all()));
foreach ($etalonRoutes as $name => $params) {
$route = $collection->get($name);
Please sign in to comment.
Something went wrong with that request. Please try again.