Skip to content
This repository
Browse code

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

  • Loading branch information...
commit d430323d63055115e27c8b279d2b199a5060c65a 1 parent ee75db5
Alexander asm89 authored
3  Tests/Fixtures/Controller/UsersController.php
@@ -98,4 +98,7 @@ public function getUserVoteAction(Request $request, $slug, $id)
98 98
99 99 public function getUserFoosAction($slug, Request $request)
100 100 {} // [GET] /users/{slug}/foos
  101 +
  102 + public function getCategoriesAction()
  103 + {} // [GET] /categories
101 104 }
5 Tests/Fixtures/Etalon/users_controller.yml
@@ -97,3 +97,8 @@ get_user_foos:
97 97 method: GET
98 98 pattern: /users/{slug}/foos.{_format}
99 99 controller: ::getUserFoosAction
  100 +
  101 +get_categories:
  102 + method: GET
  103 + pattern: /categories.{_format}
  104 + controller: ::getCategoriesAction
2  Tests/Routing/Loader/RestRouteLoaderTest.php
@@ -30,7 +30,7 @@ public function testUsersFixture()
30 30 $etalonRoutes = $this->loadEtalonRoutesInfo('users_controller.yml');
31 31
32 32 $this->assertTrue($collection instanceof RestRouteCollection);
33   - $this->assertEquals(25, count($collection->all()));
  33 + $this->assertEquals(26, count($collection->all()));
34 34
35 35 foreach ($etalonRoutes as $name => $params) {
36 36 $route = $collection->get($name);

0 comments on commit d430323

Please sign in to comment.
Something went wrong with that request. Please try again.