|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * @link https://github.com/phpviet/laravel-omnipay |
| 4 | + * |
| 5 | + * @copyright (c) PHP Viet |
| 6 | + * @license [MIT](https://opensource.org/licenses/MIT) |
| 7 | + */ |
| 8 | + |
| 9 | +namespace PHPViet\Laravel\Omnipay\Tests; |
| 10 | + |
| 11 | +use Orchestra\Testbench\TestCase as BaseTestCase; |
| 12 | +use PHPViet\Laravel\Omnipay\OmnipayServiceProvider; |
| 13 | +use Ignited\LaravelOmnipay\LaravelOmnipayServiceProvider; |
| 14 | + |
| 15 | +/** |
| 16 | + * @author Vuong Minh <vuongxuongminh@gmail.com> |
| 17 | + * @since 1.0.0 |
| 18 | + */ |
| 19 | +class TestCase extends BaseTestCase |
| 20 | +{ |
| 21 | + protected function getEnvironmentSetUp($app): void |
| 22 | + { |
| 23 | + $app['config']->set('laravel-omnipay', require __DIR__.'/config.php'); |
| 24 | + } |
| 25 | + |
| 26 | + protected function getPackageProviders($app): array |
| 27 | + { |
| 28 | + return [ |
| 29 | + LaravelOmnipayServiceProvider::class, |
| 30 | + OmnipayServiceProvider::class, |
| 31 | + ]; |
| 32 | + } |
| 33 | + |
| 34 | + protected function getPackageAliases($app): array |
| 35 | + { |
| 36 | + return [ |
| 37 | + 'MoMoAIO' => 'PHPViet\Laravel\Omnipay\Facades\MoMo\AllInOneGateway', |
| 38 | + 'MoMoAIA' => 'PHPViet\Laravel\Omnipay\Facades\MoMo\AppInAppGateway', |
| 39 | + 'MoMoPOS' => 'PHPViet\Laravel\Omnipay\Facades\MoMo\POSGateway', |
| 40 | + 'MoMoQRCode' => 'PHPViet\Laravel\Omnipay\Facades\MoMo\QRCodeGateway', |
| 41 | + 'OnePayDomestic' => 'PHPViet\Laravel\Omnipay\Facades\OnePay\DomesticGateway', |
| 42 | + 'OnePayInternational' => 'PHPViet\Laravel\Omnipay\Facades\OnePay\InternationalGateway', |
| 43 | + 'VNPay' => 'PHPViet\Laravel\Omnipay\Facades\VNPay\Gateway', |
| 44 | + 'VTCPay' => 'PHPViet\Laravel\Omnipay\Facades\VTCPay\Gateway', |
| 45 | + ]; |
| 46 | + } |
| 47 | +} |
0 commit comments