"Adding test case for news"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6556 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-03-11 02:22:38 +00:00
parent 9ae17c25e5
commit d326c6eefe

View file

@ -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);