mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-06 04:44:19 +01:00
Refactor entities and codebase for native property usage
- Replaced getters/setters with direct property access across entities and repositories. - Added and configured `martin-georgiev/postgresql-for-doctrine` for PostgreSQL enhancements. - Updated Doctrine configuration with types, mappings, and JSONB query functions. - Removed unused `EliminationService` and related YAML configurations.
This commit is contained in:
@@ -53,19 +53,19 @@ final class SeasonVoterTest extends TestCase
|
||||
$season->method('isOwner')->willReturn(true);
|
||||
|
||||
$quiz = self::createStub(Quiz::class);
|
||||
$quiz->method('getSeason')->willReturn($season);
|
||||
$quiz->season = $season;
|
||||
|
||||
$elimination = self::createStub(Elimination::class);
|
||||
$elimination->method('getQuiz')->willReturn($quiz);
|
||||
$elimination->quiz = $quiz;
|
||||
|
||||
$candidate = self::createStub(Candidate::class);
|
||||
$candidate->method('getSeason')->willReturn($season);
|
||||
$candidate->season = $season;
|
||||
|
||||
$question = self::createStub(Question::class);
|
||||
$question->method('getQuiz')->willReturn($quiz);
|
||||
$question->quiz = $quiz;
|
||||
|
||||
$answer = self::createStub(Answer::class);
|
||||
$answer->method('getQuestion')->willReturn($question);
|
||||
$answer->question = $question;
|
||||
|
||||
yield 'Season' => [$season];
|
||||
yield 'Elimination' => [$elimination];
|
||||
|
||||
Reference in New Issue
Block a user