Skip to content

Commit

Permalink
Update ->enable calls in tests to pass [] for additionalParams
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Jul 3, 2022
1 parent f59912e commit f43beaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Feature/ServiceEnableDefaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function it_enables_service_when_default_flag_is_provided()

$service = 'mailhog';
$this->mock(MailHog::class, function ($mock) use ($service) {
$mock->shouldReceive('enable')->with(true)->twice();
$mock->shouldReceive('enable')->with(true, [])->twice();
$mock->shouldReceive('shortName')->andReturn($service);
});

Expand All @@ -47,6 +47,6 @@ function it_enables_service_when_default_flag_is_provided()
$this->artisan('enable ' . $service . ' --default');

$service = app(MailHog::class); // Extends BaseService
$service->enable(true);
$service->enable(true, []);
}
}

0 comments on commit f43beaa

Please sign in to comment.