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,38 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $user_id
* @property string $name
* @property string $content
* @property User $creator
*/
class Script extends AbstractModel
{
use HasFactory;
protected $fillable = [
'user_id',
'name',
'content',
];
protected $casts = [
'user_id' => 'integer',
];
public function creator(): BelongsTo
{
return $this->belongsTo(User::class);
}
public function executions(): HasMany
{
return $this->hasMany(ScriptExecution::class, 'script_id');
}
}