Skip to content

Commit

Permalink
new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wouerner committed Dec 14, 2023
1 parent c65d386 commit 1fe20b3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/Cases/SquadTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

namespace HyperfTest\Cases;

use HyperfTest\HttpTestCase;
use Hyperf\Testing\TestCase;
use Hyperf\Testing\Client;

use function Hyperf\Support\make;

class SquadTest extends HttpTestCase
{
public function testIndex()
{
$res = $this->request('get', '/squads');
$this->assertSame(200, $res->getStatusCode());
}
}
20 changes: 20 additions & 0 deletions test/Cases/UserTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

namespace HyperfTest\Cases;

use HyperfTest\HttpTestCase;
use Hyperf\Testing\TestCase;
use Hyperf\Testing\Client;

use function Hyperf\Support\make;

class UserTest extends HttpTestCase
{
public function testIndex()
{
$res = $this->request('get', '/users');
$this->assertSame(200, $res->getStatusCode());
}
}

0 comments on commit 1fe20b3

Please sign in to comment.