|
|
@@ -107,7 +107,7 @@ class ConsoleIntegrationTestTraitTest extends TestCase
|
|
|
*/
|
|
|
public function testExecWithJsonArg(): void
|
|
|
{
|
|
|
- $this->exec("integration args_and_options '{\"key\":\"value\"}'");
|
|
|
+ $this->exec("integration '{\"key\":\"value\"}'");
|
|
|
|
|
|
$this->assertErrorEmpty();
|
|
|
$this->assertOutputContains('arg: {"key":"value"}');
|
|
|
@@ -115,6 +115,18 @@ class ConsoleIntegrationTestTraitTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * tests exec with missing required argument
|
|
|
+ */
|
|
|
+ public function testExecWithMissingRequiredArg(): void
|
|
|
+ {
|
|
|
+ $this->exec('integration');
|
|
|
+
|
|
|
+ $this->assertErrorContains('Missing required argument');
|
|
|
+ $this->assertErrorContains('`arg` argument is required');
|
|
|
+ $this->assertExitCode(Command::CODE_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* tests exec with input
|
|
|
*/
|
|
|
public function testExecWithInput(): void
|