Skip to content

Commit 765c6cd

Browse files
committed
test: add test for lang() error on CLI
1 parent 3106970 commit 765c6cd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/system/CommonFunctionsTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,15 @@ public function testCspScriptNonce()
606606

607607
$this->assertStringStartsWith('nonce="', csp_script_nonce());
608608
}
609+
610+
public function testLangOnCLI()
611+
{
612+
Services::createRequest(new App(), true);
613+
614+
$message = lang('CLI.generator.fileCreate', ['TestController.php']);
615+
616+
$this->assertSame('File created: TestController.php', $message);
617+
618+
$this->resetServices();
619+
}
609620
}

0 commit comments

Comments
 (0)