Skip to content

Commit 47b8762

Browse files
committed
Update CreateAPITestCaseTest.php
1 parent 1b6b28c commit 47b8762

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/webfiori/framework/test/cli/CreateAPITestCaseTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ class CreateAPITestCaseTest extends CLITestCase {
1313
* @test
1414
*/
1515
public function testCreateAPITestCase00() {
16-
$this->assertEquals([
17-
"Error: The argument --manager has invalid value.\n",
18-
], $this->executeMultiCommand([
16+
$output = $this->executeMultiCommand([
1917
CreateCommand::class,
2018
'--c' => 'api-test',
2119
'--manager' => 'A',
2220
'--service' => 'c'
23-
]));
21+
]);
22+
23+
if ($output[0] !== "Error: The argument --manager has invalid value.\n") {
24+
$this->fail("Expected error message not found. Full output: " . implode('', $output));
25+
}
26+
27+
$this->assertEquals("Error: The argument --manager has invalid value.\n", $output[0]);
2428
$this->assertEquals(-1, $this->getExitCode());
2529
}
2630
/**

0 commit comments

Comments
 (0)