26 lines
536 B
PHP
26 lines
536 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Override;
|
|
use Tests\TestCase;
|
|
use App\Repository\DrinkTypeRepository;
|
|
|
|
class DatabaseTest extends TestCase
|
|
{
|
|
#[Override]
|
|
public function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
$this->setUpDB();
|
|
}
|
|
public function testDatabase(): void
|
|
{
|
|
/** @var DrinkTypeRepository $drinkRepository */
|
|
$drinkRepository = $this->container->get(DrinkTypeRepository::class);
|
|
|
|
$this->assertCount(0, $drinkRepository->findAll());
|
|
}
|
|
}
|