This commit is contained in:
root
2023-03-29 15:20:05 +00:00
parent 5ec489e0e0
commit a0bb8f2d1e
25468 changed files with 3063105 additions and 28 deletions

View File

@@ -0,0 +1,26 @@
<?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();
}
}