From cb0181e1c4cd0996bddef17f4bfa837785f528ea Mon Sep 17 00:00:00 2001 From: Swapnil Sarwe Date: Sat, 21 Mar 2026 18:47:56 +0530 Subject: [PATCH] laravel 13 compatibility --- .github/workflows/tests.yml | 20 ++++++++++++++++++-- composer.json | 8 ++++---- tests/CompilesIconsTest.php | 10 +++++----- 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d2e57f5..6533704 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,8 +10,8 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4] - laravel: [8, 9, 10, 11, 12] + php: [7.4, '8.0', 8.1, 8.2, 8.3, 8.4, 8.5] + laravel: [8, 9, 10, 11, 12, 13] exclude: - php: 7.4 laravel: 9 @@ -43,6 +43,22 @@ jobs: laravel: 9 - php: 8.4 laravel: 10 + - php: 8.5 + laravel: 8 + - php: 8.5 + laravel: 9 + - php: 8.5 + laravel: 10 + - php: 8.5 + laravel: 11 + - php: 7.4 + laravel: 13 + - php: '8.0' + laravel: 13 + - php: 8.1 + laravel: 13 + - php: 8.2 + laravel: 13 name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 7836b13..0f9b844 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ "require": { "php": "^7.4|^8.0", "blade-ui-kit/blade-icons": "^1.1", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0" }, "require-dev": { - "codeat3/blade-icon-generation-helpers": "^0.10", + "codeat3/blade-icon-generation-helpers": "^0.12", "codeat3/phpcs-styles": "^1.0", - "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0", - "phpunit/phpunit": "^9.0|^10.5|^11.0" + "orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", + "phpunit/phpunit": "^9.0|^10.5|^11.0|^12.0" }, "autoload": { "psr-4": { diff --git a/tests/CompilesIconsTest.php b/tests/CompilesIconsTest.php index 4dd46df..9f9a016 100644 --- a/tests/CompilesIconsTest.php +++ b/tests/CompilesIconsTest.php @@ -12,7 +12,7 @@ class CompilesIconsTest extends TestCase { /** @test */ - public function it_compiles_a_single_anonymous_component() + public function test_it_compiles_a_single_anonymous_component() { $result = svg('typ-adjust-brightness')->toHtml(); @@ -25,7 +25,7 @@ public function it_compiles_a_single_anonymous_component() } /** @test */ - public function it_can_add_classes_to_icons() + public function test_it_can_add_classes_to_icons() { $result = svg('typ-adjust-brightness', 'w-6 h-6 text-gray-500')->toHtml(); @@ -37,7 +37,7 @@ public function it_can_add_classes_to_icons() } /** @test */ - public function it_can_add_styles_to_icons() + public function test_it_can_add_styles_to_icons() { $result = svg('typ-adjust-brightness', ['style' => 'color: #555'])->toHtml(); @@ -49,7 +49,7 @@ public function it_can_add_styles_to_icons() } /** @test */ - public function it_can_add_default_class_from_config() + public function test_it_can_add_default_class_from_config() { Config::set('blade-typicons.class', 'awesome'); @@ -64,7 +64,7 @@ public function it_can_add_default_class_from_config() } /** @test */ - public function it_can_merge_default_class_from_config() + public function test_it_can_merge_default_class_from_config() { Config::set('blade-typicons.class', 'awesome');