Skip to content

Commit 127fc64

Browse files
Merge pull request #55 from mirko-pagliai/develop
Develop
2 parents d94d600 + 5687496 commit 127fc64

File tree

6 files changed

+43
-2
lines changed

6 files changed

+43
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
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.

src/Console/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
namespace DatabaseBackup\Console;
1616

1717
use Cake\Console\Arguments;
18+
use Cake\Console\BaseCommand;
1819
use Cake\Console\ConsoleIo;
1920
use DatabaseBackup\BackupTrait;
20-
use MeTools\Console\Command as BaseCommand;
2121

2222
/**
2323
* Base class for console commands

tests/TestCase/I18nTest.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
}

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.8.0
1+
2.8.1

0 commit comments

Comments
 (0)