mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2026-01-01 02:27:21 +01:00
Added some tests
This commit is contained in:
28
tests/Feature/SpeedtestTest.php
Normal file
28
tests/Feature/SpeedtestTest.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Helpers\SpeedtestHelper;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Foundation\Testing\WithFaker;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SpeedtestTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/**
|
||||
* Runs a speedtest
|
||||
*
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function runSpeedtest()
|
||||
{
|
||||
$data = SpeedtestHelper::runSpeedtest();
|
||||
|
||||
$this->assertArrayHasKey('ping', $data);
|
||||
$this->assertArrayHasKey('download', $data);
|
||||
$this->assertArrayHasKey('upload', $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user