mirror of
https://github.com/anonaddy/anonaddy.git
synced 2025-12-28 07:55:07 +00:00
29 lines
588 B
PHP
29 lines
588 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Api;
|
|
|
|
use App\Helpers\GitVersionHelper as Version;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class AppVersionTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
parent::setUpSanctum();
|
|
}
|
|
|
|
/** @test */
|
|
public function user_can_get_app_version()
|
|
{
|
|
$response = $this->json('GET', '/api/v1/app-version');
|
|
|
|
$response->assertSuccessful();
|
|
|
|
$this->assertEquals(Version::version(), $response->json()['version']);
|
|
}
|
|
}
|