Plugins base (#613)

* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
This commit is contained in:
Saeed Vaziry
2025-06-14 14:35:18 +02:00
committed by GitHub
parent adc0653d15
commit 131b828807
311 changed files with 3976 additions and 2660 deletions

View File

@ -3,6 +3,9 @@
namespace Tests\Feature\API;
use App\Models\SourceControl;
use App\SourceControlProviders\Bitbucket;
use App\SourceControlProviders\Github;
use App\SourceControlProviders\Gitlab;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Http;
use Laravel\Sanctum\Sanctum;
@ -137,11 +140,11 @@ public function test_edit_source_control(string $provider, array $input): void
public static function data(): array
{
return [
['github', ['token' => 'test']],
['github', ['token' => 'test', 'global' => '1']],
['gitlab', ['token' => 'test']],
['gitlab', ['token' => 'test', 'url' => 'https://git.example.com/']],
['bitbucket', ['username' => 'test', 'password' => 'test']],
[Github::id(), ['token' => 'test']],
[Github::id(), ['token' => 'test', 'global' => '1']],
[Gitlab::id(), ['token' => 'test']],
[Gitlab::id(), ['token' => 'test', 'url' => 'https://git.example.com/']],
[Bitbucket::id(), ['username' => 'test', 'password' => 'test']],
];
}
}