From d326c6eefe9f968d74d7cbe63d4f607f73a2e229 Mon Sep 17 00:00:00 2001 From: phpnut Date: Tue, 11 Mar 2008 02:22:38 +0000 Subject: [PATCH] "Adding test case for news" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6556 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/inflector.test.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cake/tests/cases/libs/inflector.test.php b/cake/tests/cases/libs/inflector.test.php index 17cf8b4ba..c5208d45d 100644 --- a/cake/tests/cases/libs/inflector.test.php +++ b/cake/tests/cases/libs/inflector.test.php @@ -50,6 +50,10 @@ class InflectorTest extends UnitTestCase { $expected = 'menu'; $this->assertEqual($result, $expected); + $result = $this->Inflector->singularize('news'); + $expected = 'news'; + $this->assertEqual($result, $expected); + $result = $this->Inflector->singularize('food_menus'); $expected = 'food_menu'; $this->assertEqual($result, $expected); @@ -184,6 +188,10 @@ class InflectorTest extends UnitTestCase { $expected = 'menus'; $this->assertEqual($result, $expected); + $result = $this->Inflector->pluralize('news'); + $expected = 'news'; + $this->assertEqual($result, $expected); + $result = $this->Inflector->pluralize('food_menu'); $expected = 'food_menus'; $this->assertEqual($result, $expected);