We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LanguageServiceTest
1 parent 3306ab0 commit 4f830d7Copy full SHA for 4f830d7
1 file changed
tests/integration/Core/Repository/LanguageServiceTest.php
@@ -141,13 +141,14 @@ public function testCreateLanguageWithEmptyLanguageCode(): void
141
* @testWith ["."]
142
* ["ąę"]
143
* ["%^"]
144
+ * ["eng 123"]
145
*/
- public function testCreateLanguageWithInvalidLanguageCode(): void
146
+ public function testCreateLanguageWithInvalidLanguageCode(string $languageCode): void
147
{
148
$languageCreate = $this->languageService->newLanguageCreateStruct();
149
$languageCreate->enabled = true;
150
$languageCreate->name = 'English';
- $languageCreate->languageCode = 'eng 123';
151
+ $languageCreate->languageCode = $languageCode;
152
153
$this->expectException(InvalidArgumentException::class);
154
$this->languageService->createLanguage($languageCreate);
0 commit comments