@@ -14,7 +14,7 @@ final class MySqlBackofficeCourseRepositoryTest extends BackofficeCoursesModuleI
14
14
/** @test */
15
15
public function it_should_save_a_valid_course (): void
16
16
{
17
- $ this ->repository ()->save (BackofficeCourseMother::random ());
17
+ $ this ->mySqlRepository ()->save (BackofficeCourseMother::random ());
18
18
}
19
19
20
20
/** @test */
@@ -24,10 +24,10 @@ public function it_should_search_all_existing_courses(): void
24
24
$ anotherExistingCourse = BackofficeCourseMother::random ();
25
25
$ existingCourses = [$ existingCourse , $ anotherExistingCourse ];
26
26
27
- $ this ->repository ()->save ($ existingCourse );
28
- $ this ->repository ()->save ($ anotherExistingCourse );
27
+ $ this ->mySqlRepository ()->save ($ existingCourse );
28
+ $ this ->mySqlRepository ()->save ($ anotherExistingCourse );
29
29
30
- $ this ->assertSimilar ($ existingCourses , $ this ->repository ()->searchAll ());
30
+ $ this ->assertSimilar ($ existingCourses , $ this ->mySqlRepository ()->searchAll ());
31
31
}
32
32
33
33
/** @test */
@@ -37,11 +37,11 @@ public function it_should_search_all_existing_courses_with_an_empty_criteria():
37
37
$ anotherExistingCourse = BackofficeCourseMother::random ();
38
38
$ existingCourses = [$ existingCourse , $ anotherExistingCourse ];
39
39
40
- $ this ->repository ()->save ($ existingCourse );
41
- $ this ->repository ()->save ($ anotherExistingCourse );
40
+ $ this ->mySqlRepository ()->save ($ existingCourse );
41
+ $ this ->mySqlRepository ()->save ($ anotherExistingCourse );
42
42
$ this ->clearUnitOfWork ();
43
43
44
- $ this ->assertSimilar ($ existingCourses , $ this ->repository ()->matching (CriteriaMother::empty ()));
44
+ $ this ->assertSimilar ($ existingCourses , $ this ->mySqlRepository ()->matching (CriteriaMother::empty ()));
45
45
}
46
46
47
47
/** @test */
@@ -54,11 +54,11 @@ public function it_should_filter_by_criteria(): void
54
54
55
55
$ nameContainsDddCriteria = BackofficeCourseCriteriaMother::nameContains ('DDD ' );
56
56
57
- $ this ->repository ()->save ($ dddInJavaCourse );
58
- $ this ->repository ()->save ($ dddInPhpCourse );
59
- $ this ->repository ()->save ($ intellijCourse );
57
+ $ this ->mySqlRepository ()->save ($ dddInJavaCourse );
58
+ $ this ->mySqlRepository ()->save ($ dddInPhpCourse );
59
+ $ this ->mySqlRepository ()->save ($ intellijCourse );
60
60
$ this ->clearUnitOfWork ();
61
61
62
- $ this ->assertSimilar ($ dddCourses , $ this ->repository ()->matching ($ nameContainsDddCriteria ));
62
+ $ this ->assertSimilar ($ dddCourses , $ this ->mySqlRepository ()->matching ($ nameContainsDddCriteria ));
63
63
}
64
64
}
0 commit comments