mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 12:44:20 +01:00
WIP
This commit is contained in:
@@ -5,7 +5,10 @@ declare(strict_types=1);
|
||||
namespace Tvdt\Tests\Repository;
|
||||
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use Psr\Clock\ClockInterface;
|
||||
use Symfony\Component\Clock\MockClock;
|
||||
use Tvdt\Entity\Quiz;
|
||||
use Tvdt\Entity\QuizCandidate;
|
||||
use Tvdt\Repository\GivenAnswerRepository;
|
||||
use Tvdt\Repository\QuizRepository;
|
||||
|
||||
@@ -45,6 +48,18 @@ final class QuizRepositoryTest extends DatabaseTestCase
|
||||
|
||||
public function testGetScores(): void
|
||||
{
|
||||
$clock = new MockClock('2025-11-01 16:00:00');
|
||||
self::getContainer()->set(ClockInterface::class, $clock);
|
||||
$krtekSeason = $this->getSeasonByCode('krtek');
|
||||
$candidate = $this->getCandidateBySeasonAndName($krtekSeason, 'Iris');
|
||||
|
||||
// Start Quiz
|
||||
$qc = new QuizCandidate($krtekSeason->activeQuiz, $candidate);
|
||||
$this->entityManager->persist($qc);
|
||||
$this->entityManager->flush();
|
||||
|
||||
dump($qc->created);
|
||||
|
||||
$this->markTestIncomplete('TODO: Make fixtures first and write good test.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user