mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
"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:
parent
9ae17c25e5
commit
d326c6eefe
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue