diff --git a/.gitignore b/.gitignore index 9f0f791..58e078d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ coverage .php-cs-fixer.cache .phpunit.result.cache .phpunit.cache +.idea diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Algolia______Spatie_Csp_Presets_Algolia__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Algolia______Spatie_Csp_Presets_Algolia__.snap new file mode 100644 index 0000000..4a879b2 --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Algolia______Spatie_Csp_Presets_Algolia__.snap @@ -0,0 +1 @@ +connect-src https://*.algolia.net https://*.algolianet.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Bootstrap______Spatie_Csp_Presets_Bootstrap__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Bootstrap______Spatie_Csp_Presets_Bootstrap__.snap new file mode 100644 index 0000000..21767b2 --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Bootstrap______Spatie_Csp_Presets_Bootstrap__.snap @@ -0,0 +1,2 @@ +style-src data: https://maxcdn.bootstrapcdn.com +font-src data: https://maxcdn.bootstrapcdn.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_CloudflareCdn______Spatie_Csp_Presets_CloudflareCdn__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_CloudflareCdn______Spatie_Csp_Presets_CloudflareCdn__.snap new file mode 100644 index 0000000..4bc004b --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_CloudflareCdn______Spatie_Csp_Presets_CloudflareCdn__.snap @@ -0,0 +1,2 @@ +style-src https://cdnjs.cloudflare.com +script-src https://cdnjs.cloudflare.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_GoogleLookerStudio______Spatie_Csp_Presets_GoogleLookerStudio__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_GoogleLookerStudio______Spatie_Csp_Presets_GoogleLookerStudio__.snap new file mode 100644 index 0000000..47030bb --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_GoogleLookerStudio______Spatie_Csp_Presets_GoogleLookerStudio__.snap @@ -0,0 +1 @@ +frame-src https://lookerstudio.google.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_HeapAnalytics______Spatie_Csp_Presets_HeapAnalytics__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_HeapAnalytics______Spatie_Csp_Presets_HeapAnalytics__.snap new file mode 100644 index 0000000..d8eeaf2 --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_HeapAnalytics______Spatie_Csp_Presets_HeapAnalytics__.snap @@ -0,0 +1,3 @@ +script-src https://cdn.heapanalytics.com +img-src https://heapanalytics.com +connect-src https://heapanalytics.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_JQuery______Spatie_Csp_Presets_JQuery__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_JQuery______Spatie_Csp_Presets_JQuery__.snap new file mode 100644 index 0000000..dc41f5d --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_JQuery______Spatie_Csp_Presets_JQuery__.snap @@ -0,0 +1 @@ +script-src https://code.jquery.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Maze______Spatie_Csp_Presets_Maze__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Maze______Spatie_Csp_Presets_Maze__.snap new file mode 100644 index 0000000..3cef3bc --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Maze______Spatie_Csp_Presets_Maze__.snap @@ -0,0 +1,2 @@ +script-src https://snippet.maze.co +connect-src https://prompts.maze.co \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Sentry______Spatie_Csp_Presets_Sentry__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Sentry______Spatie_Csp_Presets_Sentry__.snap new file mode 100644 index 0000000..3fe8308 --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Sentry______Spatie_Csp_Presets_Sentry__.snap @@ -0,0 +1 @@ +connect-src https://*.ingest.us.sentry.io \ No newline at end of file diff --git "a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_VisualWebs\342\200\246imizer______Spatie_Csp_Presets_VisualWebs___imizer__.snap" "b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_VisualWebs\342\200\246imizer______Spatie_Csp_Presets_VisualWebs___imizer__.snap" new file mode 100644 index 0000000..5104605 --- /dev/null +++ "b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_VisualWebs\342\200\246imizer______Spatie_Csp_Presets_VisualWebs___imizer__.snap" @@ -0,0 +1,3 @@ +script-src blob: https://dev.visualwebsiteoptimizer.com +img-src blob: https://dev.visualwebsiteoptimizer.com +connect-src blob: https://dev.visualwebsiteoptimizer.com \ No newline at end of file diff --git a/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Whereby______Spatie_Csp_Presets_Whereby__.snap b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Whereby______Spatie_Csp_Presets_Whereby__.snap new file mode 100644 index 0000000..44560bb --- /dev/null +++ b/tests/.pest/snapshots/PresetTest/it_stringifies_with_data_set____Spatie_Csp_Presets_Whereby______Spatie_Csp_Presets_Whereby__.snap @@ -0,0 +1,2 @@ +script-src https://*.whereby.com +frame-src https://*.whereby.com \ No newline at end of file diff --git a/tests/PresetTest.php b/tests/PresetTest.php index 54d650c..e41c732 100644 --- a/tests/PresetTest.php +++ b/tests/PresetTest.php @@ -21,27 +21,37 @@ function (string $presetClass): void { )->with([ Presets\Basic::class, Presets\AdobeFonts::class, + Presets\Algolia::class, Presets\BunnyFonts::class, + Presets\Bootstrap::class, Presets\Clarity::class, + Presets\CloudflareCdn::class, Presets\CloudflareTurnstile::class, Presets\CloudflareWebAnalytics::class, Presets\Fathom::class, Presets\GoogleAnalytics::class, Presets\GoogleFonts::class, + Presets\GoogleLookerStudio::class, Presets\GoogleRecaptcha::class, Presets\GoogleTagManager::class, Presets\GoogleTlds::class, + Presets\HeapAnalytics::class, Presets\Hcaptcha::class, Presets\Hireroad::class, Presets\HotJar::class, Presets\HubSpot::class, Presets\Intercom::class, Presets\JsDelivr::class, + Presets\JQuery::class, + Presets\Maze::class, Presets\MetaPixel::class, Presets\PlausibleAnalytics::class, Presets\Posthog::class, + Presets\Sentry::class, Presets\Stripe::class, Presets\TicketTailor::class, Presets\Tolt::class, Presets\Vimeo::class, + Presets\VisualWebsiteOptimizer::class, + Presets\Whereby::class, ]);