From 93cc01fb2d52468ab165694bde25f715aa2f52a7 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 23 Feb 2022 00:01:03 +0100 Subject: [PATCH] Update laravel-nami --- packages/laravel-nami | 2 +- tests/Feature/Course/DeleteTest.php | 4 ++-- tests/Feature/Course/StoreTest.php | 4 ++-- tests/Feature/Course/UpdateTest.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/laravel-nami b/packages/laravel-nami index 999f8948..220187be 160000 --- a/packages/laravel-nami +++ b/packages/laravel-nami @@ -1 +1 @@ -Subproject commit 999f89480b1cb12f7b228ff672b7499247e04336 +Subproject commit 220187bef4c2d22f6e559525b234659e64c835f5 diff --git a/tests/Feature/Course/DeleteTest.php b/tests/Feature/Course/DeleteTest.php index b771ec63..1c61d346 100644 --- a/tests/Feature/Course/DeleteTest.php +++ b/tests/Feature/Course/DeleteTest.php @@ -19,7 +19,7 @@ class DeleteTest extends TestCase public function testItDeletesACourse(): void { $this->login()->loginNami(); - app(CourseFake::class)->deleteSuccessful(123, 999); + app(CourseFake::class)->deletesSuccessfully(123, 999); $member = Member::factory()->defaults()->inNami(123)->has(CourseMember::factory()->inNami(999)->for(Course::factory()), 'courses')->createOne(); $this->delete("/member/{$member->id}/course/{$member->courses->first()->id}"); @@ -31,7 +31,7 @@ class DeleteTest extends TestCase public function testItReceivesUnknownErrors(): void { $this->login()->loginNami(); - app(CourseFake::class)->deleteFailed(123, 999); + app(CourseFake::class)->failsDeleting(123, 999); $member = Member::factory()->defaults()->inNami(123)->has(CourseMember::factory()->inNami(999)->for(Course::factory()), 'courses')->createOne(); $response = $this->delete("/member/{$member->id}/course/{$member->courses->first()->id}"); diff --git a/tests/Feature/Course/StoreTest.php b/tests/Feature/Course/StoreTest.php index 51ae3352..8e1b2c81 100644 --- a/tests/Feature/Course/StoreTest.php +++ b/tests/Feature/Course/StoreTest.php @@ -74,7 +74,7 @@ class StoreTest extends TestCase $this->withoutExceptionHandling()->login()->loginNami(); $member = Member::factory()->defaults()->inNami(123)->createOne(); $course = Course::factory()->inNami(456)->createOne(); - app(CourseFake::class)->createsSuccessful(123, 999); + app(CourseFake::class)->createsSuccessfully(123, 999); $this->post("/member/{$member->id}/course", [ 'course_id' => $course->id, @@ -124,7 +124,7 @@ class StoreTest extends TestCase $this->login()->loginNami(); $member = Member::factory()->defaults()->inNami(123)->createOne(); $course = Course::factory()->inNami(456)->createOne(); - app(CourseFake::class)->createFailed(123); + app(CourseFake::class)->failsCreating(123); $response = $this->post("/member/{$member->id}/course", [ 'course_id' => $course->id, diff --git a/tests/Feature/Course/UpdateTest.php b/tests/Feature/Course/UpdateTest.php index 03d4605b..5d9a9377 100644 --- a/tests/Feature/Course/UpdateTest.php +++ b/tests/Feature/Course/UpdateTest.php @@ -74,7 +74,7 @@ class UpdateTest extends TestCase { $this->withoutExceptionHandling(); $this->login()->loginNami(); - app(CourseFake::class)->updatesSuccessful(123, 999); + app(CourseFake::class)->updatesSuccessfully(123, 999); $member = Member::factory()->defaults()->inNami(123)->has(CourseMember::factory()->inNami(999)->for(Course::factory()), 'courses')->createOne(); $newCourse = Course::factory()->inNami(789)->create(); @@ -120,7 +120,7 @@ class UpdateTest extends TestCase public function testItReceivesUnknownErrors(): void { $this->login()->loginNami(); - app(CourseFake::class)->doesntUpdateWithError(123, 999); + app(CourseFake::class)->failsUpdating(123, 999); $member = Member::factory()->defaults()->inNami(123)->has(CourseMember::factory()->inNami(999)->for(Course::factory()), 'courses')->createOne(); $newCourse = Course::factory()->inNami(789)->create();