Skip to content

Commit 144df4c

Browse files
committed
Fixed tests
1 parent f9fbf02 commit 144df4c

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
test('default command "demo" is correctly loaded', function () {
4+
$app = getApp();
5+
$app->runCommand(['minicli', 'demo']);
6+
})->expectOutputRegex("/help/");
7+
8+
test('the "demo test" command echoes command parameters', function () {
9+
$app = getApp();
10+
$app->runCommand(['minicli', 'demo', 'test', 'user=erika']);
11+
})->expectOutputRegex("/erika/");
12+
13+
test('the "demo table" command prints test table', function () {
14+
$app = getApp();
15+
$app->runCommand(['minicli', 'demo', 'table']);
16+
})->expectOutputRegex("/Header 3/");

tests/Feature/Command/HelpCommandTest.php

-21
This file was deleted.

0 commit comments

Comments
 (0)