Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hkreuter committed Feb 12, 2025
1 parent 29f3936 commit ceea798
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Integration/Infrastructure/RefreshTokenRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use DateTime;
use DateTimeImmutable;
use Doctrine\DBAL\Connection;
use OxidEsales\EshopCommunity\Core\Di\ContainerFacade;
use OxidEsales\EshopCommunity\Internal\Framework\Database\ConnectionFactoryInterface;
use OxidEsales\GraphQL\Base\DataType\UserInterface;
use OxidEsales\GraphQL\Base\Exception\InvalidRefreshToken;
Expand All @@ -23,6 +24,19 @@
#[CoversClass(RefreshTokenRepository::class)]
class RefreshTokenRepositoryTest extends IntegrationTestCase
{
public function setUp(): void
{
parent::setUp();

ContainerFacade::get(ConnectionFactoryInterface::class)
->create()
->executeStatement(
file_get_contents(
__DIR__ . '/../../Fixtures/dump.sql'
)
);
}

public function testGetNewRefreshTokenGivesCorrectlyFilledDataType(): void
{
$sut = $this->getSut();
Expand Down

0 comments on commit ceea798

Please sign in to comment.