Skip to content

Commit

Permalink
Finish fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Aug 18, 2023
1 parent 8697b2a commit 7868fae
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/Feature/MakeProviderCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@

class MakeProviderCommandTest extends TestCase
{
protected function getEnvironmentSetUp($app)
{
parent::getEnvironmentSetUp($app);

$app['config']->set('serviceable.services.checkout', [
'name' => 'Checkout',
'config' => 'payment',
]);
}

/** @test */
public function make_payment_provider_command_will_prompt_for_missing_arguments()
{
Expand Down Expand Up @@ -54,9 +64,9 @@ private function assertGatewayExists(string $id)
{
$provider = Str::studly($id);

$servicePath = app_path('Services/Payment');
$servicePath = app_path('Services/Checkout');

$this->assertTrue(file_exists("{$servicePath}/{$provider}PaymentRequest.php"));
$this->assertTrue(file_exists("{$servicePath}/{$provider}PaymentResponse.php"));
$this->assertTrue(file_exists("{$servicePath}/{$provider}CheckoutRequest.php"));
$this->assertTrue(file_exists("{$servicePath}/{$provider}CheckoutResponse.php"));
}
}

0 comments on commit 7868fae

Please sign in to comment.