Example #1
0
 public function tearDown()
 {
     parent::tearDown();
     m::close();
     (new \UsersCreateTable())->down();
     Facades\Schema::drop('password_reminders');
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->app['router']->enableFilters();
     $this->app['router']->get('/auth-test', ['before' => 'auth', function () {
         return 'OK';
     }]);
     $this->app['router']->get('/guest-test', ['before' => 'guest', function () {
         return 'OK';
     }]);
     $this->app['router']->get('/access-test', ['before' => 'auth|access:test', function () {
         return 'OK';
     }]);
     $this->app['router']->get('/more-access-test', ['before' => 'auth|access:test1,test2', function () {
         return 'OK';
     }]);
 }
 public function tearDown()
 {
     parent::tearDown();
     m::close();
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function createApplication()
 {
     $app = parent::createApplication();
     $app->setLocale('no');
     return $app;
 }