mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-30 17:47:20 +01:00
Fix tests and update version number
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
namespace Tests\Unit\Helpers\SpeedtestHelper;
|
||||
|
||||
use App\Exceptions\SpeedtestFailureException;
|
||||
use App\Helpers\SpeedtestHelper;
|
||||
use App\Utils\OoklaTester;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use JsonException;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SpeedtestTest extends TestCase
|
||||
@@ -58,11 +58,11 @@ class SpeedtestTest extends TestCase
|
||||
*/
|
||||
public function testInvaidJson()
|
||||
{
|
||||
$this->expectException(SpeedtestFailureException::class);
|
||||
|
||||
$json = '{hi: hi}';
|
||||
|
||||
$o = $this->speedtestProvider->run($json);
|
||||
|
||||
$this->assertFalse($o);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,10 +72,10 @@ class SpeedtestTest extends TestCase
|
||||
*/
|
||||
public function testIncompleteJson()
|
||||
{
|
||||
$this->expectException(SpeedtestFailureException::class);
|
||||
|
||||
$json = '{"hi": "hi"}';
|
||||
|
||||
$o = $this->speedtestProvider->run($json);
|
||||
|
||||
$this->assertFalse($o);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user