Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updating ExtractTask test case to reflect changes made in df8895a. Do…
…main strings are no longer default merged into default.pot.
  • Loading branch information
markstory committed Dec 20, 2009
1 parent e95186d commit 79cd856
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions cake/tests/cases/console/libs/tasks/extract.test.php
Expand Up @@ -38,9 +38,9 @@
}

Mock::generatePartial(
'ShellDispatcher', 'TestExtractTaskMockShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
);
'ShellDispatcher', 'TestExtractTaskMockShellDispatcher',
array('getInput', 'stdout', 'stderr', '_stop', '_initEnvironment')
);

/**
* ExtractTaskTest class
Expand Down Expand Up @@ -132,11 +132,6 @@ function testExecute() {
$pattern = '/msgid "You deleted %d message."\nmsgid_plural "You deleted %d messages."/';
$this->assertPattern($pattern, $result);

$pattern = '/msgid "You have %d new message \(domain\)."\nmsgid_plural "You have %d new messages \(domain\)."/';
$this->assertPattern($pattern, $result);
$pattern = '/msgid "You deleted %d message \(domain\)."\nmsgid_plural "You deleted %d messages \(domain\)."/';
$this->assertPattern($pattern, $result);

// extract.ctp - reading the domain.pot
$result = file_get_contents($path . DS . 'domain.pot');

Expand Down

0 comments on commit 79cd856

Please sign in to comment.