mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
adding Media to inflector tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5154 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
90022227b4
commit
34528b40ce
1 changed files with 8 additions and 0 deletions
|
@ -92,6 +92,10 @@ class InflectorTest extends UnitTestCase {
|
|||
$result = $this->inflector->singularize('Alias');
|
||||
$expected = 'Alias';
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->inflector->singularize('Media');
|
||||
$expected = 'Media';
|
||||
$this->assertEqual($result, $expected);
|
||||
}
|
||||
|
||||
function testInflectingPlurals() {
|
||||
|
@ -146,6 +150,10 @@ class InflectorTest extends UnitTestCase {
|
|||
$result = $this->inflector->pluralize('Aliases');
|
||||
$expected = 'Aliases';
|
||||
$this->assertEqual($result, $expected);
|
||||
|
||||
$result = $this->inflector->pluralize('Media');
|
||||
$expected = 'Media';
|
||||
$this->assertEqual($result, $expected);
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
|
|
Loading…
Reference in a new issue