mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-28 16:06:35 +01:00
Added unit tests
This commit is contained in:
21
tests/Feature/AppVersionTest.php
Normal file
21
tests/Feature/AppVersionTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AppVersionTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Test the version CLI command
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testVersionCommand()
|
||||
{
|
||||
$response = $this->artisan('speedtest:version')
|
||||
->expectsOutput('Speedtest Tracker v' . config('speedtest.version'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user