Files
Speedtest-Tracker/conf/site/tests/Feature/Utils/InfluxDB/InfluxDBWrapperWrapperTest.php
2021-04-11 09:23:18 +01:00

27 lines
589 B
PHP

<?php
namespace Tests\Feature\Utils\InfluxDB;
use App\Exceptions\InfluxDBNotEnabledException;
use App\Utils\InfluxDB\InfluxDB;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class InfluxDBWrapperWrapperTest extends TestCase
{
use RefreshDatabase;
/**
* Test it throws the right exception.
*
* @return void
*/
public function test_it_throws_excetpion_when_it_is_disabled()
{
$this->expectException(InfluxDBNotEnabledException::class);
InfluxDB::connect();
}
}