Skip to content

Commit

Permalink
Setup mock config
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceandy committed Jun 18, 2020
1 parent b8ea2d1 commit b2b2019
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Feature/PaymentControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,22 @@

use Bryceandy\Laravel_Pesapal\Payment;
use Bryceandy\Laravel_Pesapal\Tests\TestCase;
use Illuminate\Foundation\Application;

class PaymentControllerTest extends TestCase
{
/**
* Mocked Config
*
* @param Application $app
*/
protected function getEnvironmentSetUp($app)
{
$app['config']->set('pesapal.consumer_key', 'key');
$app['config']->set('pesapal.consumer_secret', 'secret');
$app['config']->set('pesapal.callback_url', 'http://testurl.com');
}

/** @test */
public function required_attributes_should_be_validated_when_posting_payments()
{
Expand Down

0 comments on commit b2b2019

Please sign in to comment.