File tree Expand file tree Collapse file tree 6 files changed +43
-2
lines changed
Expand file tree Collapse file tree 6 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 11# 2.x branch
22## 2.8 branch
3+ ### 2.8.1
4+ * fixed I18n translations;
5+ * fixed [ bug for ` Command ` class] ( https://github.com/mirko-pagliai/cakephp-database-backup/pull/54 ) .
6+
37### 2.8.0
48* updated for ` cakephp ` 4 and ` phpunit ` 8.
59
610## 2.7 branch
11+ ### 2.7.1
12+ * fixed [ bug for ` Command ` class] ( https://github.com/mirko-pagliai/cakephp-database-backup/pull/54 ) .
13+
714### 2.7.0
815* ` BackupTrait::getBinary() ` method has been moved to ` Driver ` abstract class;
916* ` BackupTrait::getTarget() ` , ` BackupTrait::getDriverName() ` and
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1515namespace DatabaseBackup \Console ;
1616
1717use Cake \Console \Arguments ;
18+ use Cake \Console \BaseCommand ;
1819use Cake \Console \ConsoleIo ;
1920use DatabaseBackup \BackupTrait ;
20- use MeTools \Console \Command as BaseCommand ;
2121
2222/**
2323 * Base class for console commands
Original file line number Diff line number Diff line change 1+ <?php
2+ declare (strict_types=1 );
3+ /**
4+ * This file is part of cakephp-database-backup.
5+ *
6+ * Licensed under The MIT License
7+ * For full copyright and license information, please see the LICENSE.txt
8+ * Redistributions of files must retain the above copyright notice.
9+ *
10+ * @copyright Copyright (c) Mirko Pagliai
11+ * @link https://github.com/mirko-pagliai/cakephp-database-backup
12+ * @license https://opensource.org/licenses/mit-license.php MIT License
13+ */
14+
15+ namespace DatabaseBackup \Test \TestCase ;
16+
17+ use Cake \I18n \I18n ;
18+ use DatabaseBackup \TestSuite \TestCase ;
19+
20+ /**
21+ * I18nTest class
22+ */
23+ class I18nTest extends TestCase
24+ {
25+ /**
26+ * Tests I18n translations
27+ * @test
28+ */
29+ public function testI18nConstant ()
30+ {
31+ $ translator = I18n::getTranslator ('database_backup ' , 'it ' );
32+ $ this ->assertEquals ('Esporta un backup del database ' , $ translator ->translate ('Exports a database backup ' ));
33+ }
34+ }
Original file line number Diff line number Diff line change 1- 2.8.0
1+ 2.8.1
You can’t perform that action at this time.
0 commit comments