mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
29 lines
580 B
PHP
29 lines
580 B
PHP
<?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);
|
|
}
|
|
}
|