#6 - Google calendar (#52)

* change layout

* change layout

* #22 - wip

* wip

* wip

* #22 - wip

* #22 - wip

* #22 - wip

* #22 - wip

* #22 - fix

* #22 - wip

* #22 - added some tests

* #22 - wip

* #22 - wip

* #22 - fix

* #22 - wip

* #22 - wip

* #22 - wip

* #22 - fix

* #22 - fix

* #22 - fix

* #22 - fix

* #22 - fix

* #22 - fix

* #6 - wip

* #6 - update readme

* #6 - fix

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
This commit is contained in:
Adrian Hopek
2022-02-16 09:01:11 +01:00
committed by GitHub
parent f81c7ca8fa
commit 026dd87a44
10 changed files with 660 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Bus;
use Inertia\Testing\AssertableInertia as Assert;
use Tests\FeatureTestCase;
use Toby\Domain\Enums\VacationRequestState;
@@ -15,6 +16,7 @@ use Toby\Eloquent\Models\User;
use Toby\Eloquent\Models\VacationLimit;
use Toby\Eloquent\Models\VacationRequest;
use Toby\Eloquent\Models\YearPeriod;
use Toby\Infrastructure\Jobs\SendVacationRequestDaysToGoogleCalendar;
class VacationRequestTest extends FeatureTestCase
{
@@ -26,6 +28,8 @@ class VacationRequestTest extends FeatureTestCase
{
parent::setUp();
Bus::fake();
$this->polishHolidaysRetriever = $this->app->make(PolishHolidaysRetriever::class);
}
@@ -128,6 +132,8 @@ class VacationRequestTest extends FeatureTestCase
$this->assertDatabaseHas("vacation_requests", [
"state" => VacationRequestState::Approved,
]);
Bus::assertDispatched(SendVacationRequestDaysToGoogleCalendar::class);
}
public function testTechnicalApproverCanRejectVacationRequest(): void