| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class ExportTest extends ConsoleTest |
||
| 17 | { |
||
| 18 | public function tearDown(): void |
||
| 19 | { |
||
| 20 | parent::tearDown(); |
||
| 21 | |||
| 22 | if (file_exists(sys_get_temp_dir() . '/messages.ru.php')) { |
||
| 23 | unlink(sys_get_temp_dir() . '/messages.ru.php'); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testReset(): void |
||
| 28 | { |
||
| 29 | $this->assertFalse(is_file(sys_get_temp_dir() . '/messages.ru.php')); |
||
| 30 | |||
| 31 | $this->runCommandDebug('i18n:index'); |
||
| 32 | $this->runCommandDebug('configure'); |
||
| 33 | |||
| 34 | $this->runCommandDebug( |
||
| 35 | 'i18n:export', |
||
| 36 | [ |
||
| 37 | 'locale' => 'ru', |
||
| 38 | 'path' => sys_get_temp_dir(), |
||
| 39 | '--fallback' => 'en', |
||
| 40 | ] |
||
| 44 |