示例#1
0
 public function tearDown()
 {
     foreach ($this->systemLookup as $sl) {
         Lookup::whereName($sl['name'])->delete();
     }
     parent::tearDown();
 }
示例#2
0
 public function tearDown()
 {
     $this->deleteUser(1);
     $this->deleteUser(2);
     $this->deleteUser(3);
     parent::tearDown();
 }
 public function tearDown()
 {
     $this->deleteDbService(1);
     $this->deleteDbService(2);
     $this->deleteDbService(3);
     parent::tearDown();
 }
示例#4
0
 public function stage()
 {
     parent::stage();
     Artisan::call('migrate', ['--path' => 'vendor/dreamfactory/df-rws/database/migrations/']);
     Artisan::call('db:seed', ['--class' => DreamFactory\Core\Rws\Database\Seeds\DatabaseSeeder::class]);
     if (!$this->serviceExists('gmap')) {
         \DreamFactory\Core\Models\Service::create(["name" => "gmap", "type" => "rws", "label" => "Remote web service", "config" => ["base_url" => "http://maps.googleapis.com/maps/api/directions/json", "cache_enabled" => false, "parameters" => [["name" => "origin", "value" => "5965 Willow Oak Pass, Cumming, GA 30040", "outbound" => true, "cache_key" => true, "action" => 31], ["name" => "destination", "value" => "3600 Mansell Rd. Alpharetta, GA", "outbound" => true, "cache_key" => true, "action" => 31]]]]);
     }
     if (!$this->serviceExists('dsp-tester')) {
         \DreamFactory\Core\Models\Service::create(["name" => "dsp-tester", "type" => "rws", "label" => "Remote web service", "config" => ["base_url" => "https://dsp-tester.cloud.dreamfactory.com/rest", "cache_enabled" => false, "headers" => [["name" => "Authorization", "value" => "Basic YXJpZmlzbGFtQGRyZWFtZmFjdG9yeS5jb206dGVzdCEyMzQ=", "pass_from_client" => false, "action" => 31], ["name" => "X-DreamFactory-Application-Name", "value" => "admin", "pass_from_client" => false, "action" => 31], ["name" => "X-HTTP-Method", "pass_from_client" => true, "action" => 31]]]]);
     }
 }
示例#5
0
 public function tearDown()
 {
     \DreamFactory\Core\Models\User::whereEmail('*****@*****.**')->delete();
     parent::tearDown();
 }
示例#6
0
 public function tearDown()
 {
     $email = Arr::get($this->user1, 'email');
     User::whereEmail($email)->delete();
     parent::tearDown();
 }
示例#7
0
 public function setUp()
 {
     parent::setUp();
     Session::set('role.name', 'test');
     Session::set('role.id', 1);
 }