123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /*
- * This file is part of ibrand/laravel-sms.
- *
- * (c) iBrand <https://www.ibrand.cc>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace iBrand\Sms\Test;
- class SmsTest extends \Orchestra\Testbench\TestCase
- {
- use SmsTestTrait;
- /**
- * @param \Illuminate\Foundation\Application $app
- *
- * @return array
- */
- protected function getPackageProviders($app)
- {
- return ['iBrand\Sms\ServiceProvider'];
- }
- /**
- * @param \Illuminate\Foundation\Application $app
- *
- * @return array
- */
- protected function getPackageAliases($app)
- {
- return [
- 'Sms' => "iBrand\Sms\Facade",
- ];
- }
- protected function getEnvironmentSetUp($app)
- {
- $app['config']->set('ibrand.sms', require __DIR__.'/../config/config.php');
- $app['config']->set('database.default', 'testbench');
- $app['config']->set('database.connections.testbench', [
- 'driver' => 'sqlite',
- 'database' => ':memory:',
- 'prefix' => '',
- ]);
- }
- protected function loadMigrationsFrom($app)
- {
- $this->artisan('migrate', ['--database' => 'testbench']);
- }
- protected function setUp()
- {
- parent::setUp(); // TODO: Change the autogenerated stub
- $this->loadMigrationsFrom(__DIR__.'/database');
- }
- }
|