public function setUp()
 {
     parent::setUp();
     $this->app['env'] = 'production';
     $this->app['config']->set('smarterror::dev-email', '*****@*****.**');
     $this->app['config']->set('app.debug', false);
     $this->app['config']->set('mail.driver', 'sendmail');
     $this->app['config']->set('mail.pretend', false);
     $this->app['config']->set('mail.from', ['name' => 'FooBar', 'address' => '*****@*****.**']);
     $this->app['router']->get('exception', function () {
         throw new \LogicException('L4SmartErrors test exception');
     });
     $this->app['router']->get('alert', function () {
         $this->app['log']->alert('L4SmartErrors test alert', ['foo' => 'bar']);
         return 'Logged!';
     });
     $storPath = $this->app['config']->get('smarterror::storage-path');
     $this->app['files']->put($storPath, '{}');
 }
Exemple #2
0
 /**
  * Set up the test. This is ran before every test.
  */
 public function setUp()
 {
     parent::setUp();
     $this->app['view']->alias('c::layout.main-nosidebar', 'c::layout.main');
 }