mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-14 19:08:25 +00:00
Fixing some extract console tests
This commit is contained in:
parent
c9ae3c26c4
commit
ac0ec44f51
1 changed files with 8 additions and 3 deletions
|
@ -112,10 +112,13 @@ class ExtractTaskTest extends CakeTestCase {
|
|||
$this->assertPattern($pattern, $result);
|
||||
$pattern = '/msgid "Editing this Page"\nmsgstr ""\n/';
|
||||
$this->assertPattern($pattern, $result);
|
||||
$pattern = '/msgid "To change the content of this page, edit: %s.*To change its layout, ';
|
||||
$pattern .= 'edit: %s.*You can also add some CSS styles for your pages at: %s"\nmsgstr ""/s';
|
||||
$pattern = '/msgid "To change the content of this page, create: APP\/views\/pages\/home\.ctp/';
|
||||
$this->assertPattern($pattern, $result);
|
||||
|
||||
$pattern = '/To change its layout, create: APP\/views\/layouts\/default\.ctp\./s';
|
||||
$this->assertPattern($pattern, $result);
|
||||
|
||||
|
||||
// extract.ctp
|
||||
$pattern = '/\#: (\\\\|\/)extract\.ctp:6\n';
|
||||
$pattern .= 'msgid "You have %d new message."\nmsgid_plural "You have %d new messages."/';
|
||||
|
@ -126,10 +129,12 @@ class ExtractTaskTest extends CakeTestCase {
|
|||
$this->assertPattern($pattern, $result);
|
||||
|
||||
$pattern = '/\#: (\\\\|\/)extract\.ctp:14\n';
|
||||
$pattern .= '\#: (\\\\|\/)home\.ctp:66\n';
|
||||
$pattern .= '\#: (\\\\|\/)home\.ctp:99\n';
|
||||
$pattern .= 'msgid "Editing this Page"\nmsgstr ""/';
|
||||
|
||||
$this->assertPattern($pattern, $result);
|
||||
|
||||
|
||||
// extract.ctp - reading the domain.pot
|
||||
$result = file_get_contents($this->path . DS . 'domain.pot');
|
||||
|
||||
|
|
Loading…
Reference in a new issue