increase test coverage (#117)

70% test coverage
remove socialite
This commit is contained in:
Saeed Vaziry
2024-03-15 22:23:45 +01:00
committed by GitHub
parent 4f12de9586
commit a406491160
62 changed files with 1102 additions and 639 deletions

View File

@ -1,25 +0,0 @@
<?php
namespace Database\Factories;
use App\Models\Redirect;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
class RedirectFactory extends Factory
{
protected $model = Redirect::class;
public function definition(): array
{
return [
'site_id' => $this->faker->randomNumber(),
'mode' => $this->faker->randomNumber(),
'from' => $this->faker->word(),
'to' => $this->faker->word(),
'status' => $this->faker->word(),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
}
}

View File

@ -1,26 +0,0 @@
<?php
namespace Database\Factories;
use App\Models\Script;
use App\Models\ScriptExecution;
use App\Models\Server;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
class ScriptExecutionFactory extends Factory
{
protected $model = ScriptExecution::class;
public function definition(): array
{
return [
'user' => $this->faker->word(),
'finished_at' => Carbon::now(),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
'script_id' => Script::factory(),
'server_id' => Server::factory(),
];
}
}

View File

@ -1,15 +0,0 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class ScriptFactory extends Factory
{
public function definition(): array
{
return [
//
];
}
}