Update laravel-nami
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5192e424ab
commit
93cc01fb2d
|
@ -1 +1 @@
|
||||||
Subproject commit 999f89480b1cb12f7b228ff672b7499247e04336
|
Subproject commit 220187bef4c2d22f6e559525b234659e64c835f5
|
|
@ -19,7 +19,7 @@ class DeleteTest extends TestCase
|
||||||
public function testItDeletesACourse(): void
|
public function testItDeletesACourse(): void
|
||||||
{
|
{
|
||||||
$this->login()->loginNami();
|
$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();
|
$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}");
|
$this->delete("/member/{$member->id}/course/{$member->courses->first()->id}");
|
||||||
|
@ -31,7 +31,7 @@ class DeleteTest extends TestCase
|
||||||
public function testItReceivesUnknownErrors(): void
|
public function testItReceivesUnknownErrors(): void
|
||||||
{
|
{
|
||||||
$this->login()->loginNami();
|
$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();
|
$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}");
|
$response = $this->delete("/member/{$member->id}/course/{$member->courses->first()->id}");
|
||||||
|
|
|
@ -74,7 +74,7 @@ class StoreTest extends TestCase
|
||||||
$this->withoutExceptionHandling()->login()->loginNami();
|
$this->withoutExceptionHandling()->login()->loginNami();
|
||||||
$member = Member::factory()->defaults()->inNami(123)->createOne();
|
$member = Member::factory()->defaults()->inNami(123)->createOne();
|
||||||
$course = Course::factory()->inNami(456)->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", [
|
$this->post("/member/{$member->id}/course", [
|
||||||
'course_id' => $course->id,
|
'course_id' => $course->id,
|
||||||
|
@ -124,7 +124,7 @@ class StoreTest extends TestCase
|
||||||
$this->login()->loginNami();
|
$this->login()->loginNami();
|
||||||
$member = Member::factory()->defaults()->inNami(123)->createOne();
|
$member = Member::factory()->defaults()->inNami(123)->createOne();
|
||||||
$course = Course::factory()->inNami(456)->createOne();
|
$course = Course::factory()->inNami(456)->createOne();
|
||||||
app(CourseFake::class)->createFailed(123);
|
app(CourseFake::class)->failsCreating(123);
|
||||||
|
|
||||||
$response = $this->post("/member/{$member->id}/course", [
|
$response = $this->post("/member/{$member->id}/course", [
|
||||||
'course_id' => $course->id,
|
'course_id' => $course->id,
|
||||||
|
|
|
@ -74,7 +74,7 @@ class UpdateTest extends TestCase
|
||||||
{
|
{
|
||||||
$this->withoutExceptionHandling();
|
$this->withoutExceptionHandling();
|
||||||
$this->login()->loginNami();
|
$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();
|
$member = Member::factory()->defaults()->inNami(123)->has(CourseMember::factory()->inNami(999)->for(Course::factory()), 'courses')->createOne();
|
||||||
$newCourse = Course::factory()->inNami(789)->create();
|
$newCourse = Course::factory()->inNami(789)->create();
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ class UpdateTest extends TestCase
|
||||||
public function testItReceivesUnknownErrors(): void
|
public function testItReceivesUnknownErrors(): void
|
||||||
{
|
{
|
||||||
$this->login()->loginNami();
|
$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();
|
$member = Member::factory()->defaults()->inNami(123)->has(CourseMember::factory()->inNami(999)->for(Course::factory()), 'courses')->createOne();
|
||||||
$newCourse = Course::factory()->inNami(789)->create();
|
$newCourse = Course::factory()->inNami(789)->create();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue