Skip to content

Commit

Permalink
Fixing failing i18n ExtractTask tests on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
majna committed Oct 18, 2011
1 parent fc5a465 commit 0a9033b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Cake/Test/Case/Console/Command/Task/ExtractTaskTest.php
Expand Up @@ -284,10 +284,10 @@ public function testExtractModelValidation() {
$this->Task->execute();
$result = file_get_contents($this->path . DS . 'default.pot');

$pattern = '#Model/PersisterOne.php:validation for field title#';
$pattern = preg_quote('#Model' . DS . 'PersisterOne.php:validation for field title#', '\\');
$this->assertPattern($pattern, $result);

$pattern = '#Model/PersisterOne.php:validation for field body#';
$pattern = preg_quote('#Model' . DS . 'PersisterOne.php:validation for field body#', '\\');
$this->assertPattern($pattern, $result);

$pattern = '#msgid "Post title is required"#';
Expand Down Expand Up @@ -329,10 +329,10 @@ public function testExtractModelValidationWithDomainInModel() {
$this->Task->execute();
$result = file_get_contents($this->path . DS . 'test_plugin.pot');

$pattern = '#Plugin/TestPlugin/Model/TestPluginPost.php:validation for field title#';
$pattern = preg_quote('#Plugin' . DS. 'TestPlugin' . DS. 'Model' . DS. 'TestPluginPost.php:validation for field title#', '\\');
$this->assertPattern($pattern, $result);

$pattern = '#Plugin/TestPlugin/Model/TestPluginPost.php:validation for field body#';
$pattern = preg_quote('#Plugin' . DS. 'TestPlugin' . DS. 'Model' . DS. 'TestPluginPost.php:validation for field body#', '\\');
$this->assertPattern($pattern, $result);

$pattern = '#msgid "Post title is required"#';
Expand Down Expand Up @@ -369,10 +369,10 @@ public function testExtractModelValidationInPlugin() {
$this->Task->execute();
$result = file_get_contents($this->path . DS . 'test_plugin.pot');

$pattern = '#Model/TestPluginPost.php:validation for field title#';
$pattern = preg_quote('#Model' . DS. 'TestPluginPost.php:validation for field title#', '\\');
$this->assertPattern($pattern, $result);

$pattern = '#Model/TestPluginPost.php:validation for field body#';
$pattern = preg_quote('#Model' . DS. 'TestPluginPost.php:validation for field body#', '\\');
$this->assertPattern($pattern, $result);

$pattern = '#msgid "Post title is required"#';
Expand Down

0 comments on commit 0a9033b

Please sign in to comment.