tests: 增加了接口调用的测试用例

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2023-12-18 15:54:08 +08:00
parent 1b4df138a3
commit f2f7e67d0e

View File

@@ -1,5 +1,9 @@
<?php
test('example', function () {
expect(true)->toBeTrue();
$resp = $this->get('/');
expect($resp['code'])->toBe(200)
->and($resp['data'])->toBe([
'method' => 'GET',
]);
});