����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.219.44.93 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/././cbt.gltechlimited.com/vendor/cviebrock/eloquent-sluggable/tests/ |
Upload File : |
<?php namespace Cviebrock\EloquentSluggable\Tests; use Cviebrock\EloquentSluggable\ServiceProvider; use Illuminate\Contracts\Events\Dispatcher; use Mockery; use Orchestra\Testbench\TestCase as Orchestra; /** * Class TestCase * * @package Tests */ abstract class TestCase extends Orchestra { /** * Setup the test environment. * * @return void */ public function setUp(): void { parent::setUp(); $this->artisan('migrate', ['--database' => 'testbench']); $this->beforeApplicationDestroyed(function () { $this->artisan('migrate:rollback'); }); } /** * @inheritDoc */ protected function getEnvironmentSetUp($app) { // set up database configuration $app['config']->set('database.default', 'testbench'); $app['config']->set('database.connections.testbench', [ 'driver' => 'sqlite', 'database' => ':memory:', 'prefix' => '', ]); } /** * @inheritDoc */ protected function getPackageProviders($app) { return [ ServiceProvider::class, TestServiceProvider::class ]; } /** * Mock the event dispatcher so all events are silenced and collected. * * @return $this */ protected function withoutEvents(): self { $mock = Mockery::mock(Dispatcher::class); $mock->shouldReceive('fire', 'until'); $this->app->instance('events', $mock); return $this; } }