Update laravel-nami
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-02-23 00:01:03 +01:00
parent 5192e424ab
commit 93cc01fb2d
4 changed files with 7 additions and 7 deletions

@ -1 +1 @@
Subproject commit 999f89480b1cb12f7b228ff672b7499247e04336
Subproject commit 220187bef4c2d22f6e559525b234659e64c835f5

View File

@ -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}");

View File

@ -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,

View File

@ -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();