wip
This commit is contained in:
commit
ae480cf2f6
2768 files changed
+1485826
No files matched your search
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AppVersionCheckTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/** @test **/
|
||||
public function route_exists()
|
||||
{
|
||||
$this->post('api/app-version')->assertFound();
|
||||
}
|
||||
|
||||
/** @test **/
|
||||
public function version_param_must_be_valid_string()
|
||||
{
|
||||
// Empty
|
||||
$this->asJson()->post('api/app-version')->assertInvalid(['version']);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user