feat: add tests, chore: update readme

This commit is contained in:
Benjamin Nussbaum 2025-03-03 22:20:52 +01:00
parent 715e6a2562
commit e6a2bdb3bc
27 changed files with 1179 additions and 299 deletions

View file

@ -0,0 +1,15 @@
<?php
use App\Jobs\FetchProxyCloudResponses;
use Illuminate\Support\Facades\Bus;
test('it dispatches fetch proxy cloud responses job', function () {
// Prevent the job from actually running
Bus::fake();
// Run the command
$this->artisan('trmnl:cloud:proxy')->assertSuccessful();
// Assert that the job was dispatched
Bus::assertDispatched(FetchProxyCloudResponses::class);
});