예제 #1
0
 public function tearDown()
 {
     parent::tearDown();
     m::close();
     (new \UsersCreateTable())->down();
     Facades\Schema::drop('password_reminders');
 }
예제 #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';
     }]);
 }
예제 #3
0
 public function tearDown()
 {
     parent::tearDown();
     m::close();
 }
예제 #4
0
 /**
  * {@inheritdoc}
  */
 public function createApplication()
 {
     $app = parent::createApplication();
     $app->setLocale('no');
     return $app;
 }