diff --git a/lib/Cake/Test/Case/Utility/InflectorTest.php b/lib/Cake/Test/Case/Utility/InflectorTest.php index ba477cc1d..94abbaa22 100644 --- a/lib/Cake/Test/Case/Utility/InflectorTest.php +++ b/lib/Cake/Test/Case/Utility/InflectorTest.php @@ -122,6 +122,7 @@ class InflectorTest extends CakeTestCase { $this->assertEquals(Inflector::singularize('quotas'), 'quota'); $this->assertEquals(Inflector::singularize('curves'), 'curve'); $this->assertEquals(Inflector::singularize('body_curves'), 'body_curve'); + $this->assertEquals(Inflector::singularize('metadata'), 'metadata'); $this->assertEquals(Inflector::singularize(''), ''); } @@ -186,6 +187,7 @@ class InflectorTest extends CakeTestCase { $this->assertEquals(Inflector::pluralize('quota'), 'quotas'); $this->assertEquals(Inflector::pluralize('curve'), 'curves'); $this->assertEquals(Inflector::pluralize('body_curve'), 'body_curves'); + $this->assertEquals(Inflector::pluralize('metadata'), 'metadata'); $this->assertEquals(Inflector::pluralize(''), ''); } diff --git a/lib/Cake/Utility/Inflector.php b/lib/Cake/Utility/Inflector.php index 5637d1f22..e27d29ea4 100644 --- a/lib/Cake/Utility/Inflector.php +++ b/lib/Cake/Utility/Inflector.php @@ -163,7 +163,7 @@ class Inflector { 'Foochowese', 'gallows', 'Genevese', 'Genoese', 'Gilbertese', 'graffiti', 'headquarters', 'herpes', 'hijinks', 'Hottentotese', 'information', 'innings', 'jackanapes', 'Kiplingese', 'Kongoese', 'Lucchese', 'mackerel', 'Maltese', '.*?media', - 'mews', 'moose', 'mumps', 'Nankingese', 'news', 'nexus', 'Niasese', + 'metadata', 'mews', 'moose', 'mumps', 'Nankingese', 'news', 'nexus', 'Niasese', 'Pekingese', 'Piedmontese', 'pincers', 'Pistoiese', 'pliers', 'Portuguese', 'proceedings', 'rabies', 'rice', 'rhinoceros', 'salmon', 'Sarawakese', 'scissors', 'sea[- ]bass', 'series', 'Shavese', 'shears', 'siemens', 'species', 'swine', 'testes',