Skip to content

Commit e822d87

Browse files
authored
Laravel 12 (#480)
1 parent e148ddd commit e822d87

58 files changed

Lines changed: 34 additions & 411 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased]
77

8+
## [v1.2.2] - 2025-02-24
9+
### Added
10+
- Updated composer requirements to support Laravel 12.
11+
812
## [v1.2.1] - 2025-02-21
913
### Fixes
1014
- Corrected routes that needed their controllers' full class paths, by [@gauravmak](https://github.com/gauravmak) in [#447](https://github.com/NIT-Administrative-Systems/dynamic-forms/pull/477)

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
"require": {
2222
"php": "^8.2",
2323
"aws/aws-sdk-php": "^3.80|^4",
24-
"illuminate/support": "^8|^9|^10|^11",
25-
"illuminate/validation": "^8|^9|^10|^11",
26-
"illuminate/contracts": "^8|^9|^10|^11",
27-
"illuminate/http": "^8|^9|^10|^11",
24+
"illuminate/support": "^8|^9|^10|^11|^12",
25+
"illuminate/validation": "^8|^9|^10|^11|^12",
26+
"illuminate/contracts": "^8|^9|^10|^11|^12",
27+
"illuminate/http": "^8|^9|^10|^11|^12",
2828
"symfony/finder": "^6|^7",
29-
"nesbot/carbon": "^2 || ^3",
29+
"nesbot/carbon": "^3",
3030
"jwadhams/json-logic-php": "^1.4",
3131
"northwestern-sysdev/lodash-php": "^2.0.0"
3232
},
3333
"require-dev": {
34-
"orchestra/testbench": "^9",
35-
"phpunit/phpunit": "^10.0",
34+
"orchestra/testbench": "^10",
35+
"phpunit/phpunit": "^11.0",
3636
"php-coveralls/php-coveralls": "^2.4"
3737
},
3838
"autoload": {

tests/Calculation/JSONCalculationTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55
use Monolog\Test\TestCase;
66
use Northwestern\SysDev\DynamicForms\Calculation\JSONCalculation;
77

8-
/**
9-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Calculation\JSONCalculation
10-
*/
8+
#[\PHPUnit\Framework\Attributes\CoversClass(\Northwestern\SysDev\DynamicForms\Calculation\JSONCalculation::class)]
119
final class JSONCalculationTest extends TestCase
1210
{
13-
/**
14-
* @covers ::__invoke
15-
*/
1611
public function testCalculation(): void
1712
{
1813
$calc = new JSONCalculation(['+' => [1, 2]]);

tests/ComponentRegistryTest.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,17 @@
55
use Northwestern\SysDev\DynamicForms\ComponentRegistry;
66
use Northwestern\SysDev\DynamicForms\Components\Inputs\Textfield;
77
use Orchestra\Testbench\TestCase;
8+
use PHPUnit\Framework\Attributes\CoversClass;
89

9-
/**
10-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\ComponentRegistry
11-
*/
10+
#[CoversClass(\Northwestern\SysDev\DynamicForms\ComponentRegistry::class)]
1211
final class ComponentRegistryTest extends TestCase
1312
{
14-
/**
15-
* @covers ::__construct
16-
* @covers ::registerDefaults
17-
* @covers ::register
18-
* @covers ::registered
19-
*/
2013
public function testsRegistration(): void
2114
{
2215
$registry = new ComponentRegistry();
2316
$this->assertGreaterThan(0, count($registry->registered()));
2417
}
2518

26-
/**
27-
* @covers ::get
28-
*/
2919
public function testGet(): void
3020
{
3121
$registry = new ComponentRegistry();

tests/Components/Inputs/AddressTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Northwestern\SysDev\DynamicForms\Errors\InvalidDefinitionError;
88
use Northwestern\SysDev\DynamicForms\Tests\Components\TestCases\InputComponentTestCase;
99

10-
/**
11-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Components\Inputs\Address
12-
*/
1310
final class AddressTest extends InputComponentTestCase
1411
{
1512
public string $componentClass = Address::class;

tests/Components/Inputs/ButtonTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
use Northwestern\SysDev\DynamicForms\Tests\Components\TestCases\BaseComponentTestCase;
77
use PHPUnit\Framework\Attributes\DataProvider;
88

9-
/**
10-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Components\Inputs\Button
11-
*/
129
final class ButtonTest extends BaseComponentTestCase
1310
{
1411
protected string $componentClass = Button::class;

tests/Components/Inputs/CheckboxTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
use Northwestern\SysDev\DynamicForms\Components\Inputs\Checkbox;
77
use Northwestern\SysDev\DynamicForms\Tests\Components\TestCases\InputComponentTestCase;
88

9-
/**
10-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Components\Inputs\Checkbox
11-
*/
129
class CheckboxTest extends InputComponentTestCase
1310
{
1411
protected string $componentClass = Checkbox::class;

tests/Components/Inputs/CurrencyTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Northwestern\SysDev\DynamicForms\Tests\Components\TestCases\InputComponentTestCase;
88
use PHPUnit\Framework\Attributes\DataProvider;
99

10-
/**
11-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Components\Inputs\Currency
12-
*/
1310
final class CurrencyTest extends InputComponentTestCase
1411
{
1512
protected string $componentClass = Currency::class;

tests/Components/Inputs/DateTimeTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use Northwestern\SysDev\DynamicForms\Tests\Components\TestCases\InputComponentTestCase;
99
use PHPUnit\Framework\Attributes\TestWith;
1010

11-
/**
12-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Components\Inputs\DateTime
13-
*/
1411
final class DateTimeTest extends InputComponentTestCase
1512
{
1613
protected string $componentClass = DateTime::class;
@@ -23,9 +20,6 @@ public function testSubmissionValueHandlesNulls(string $value): void
2320
$this->assertNull($date->submissionValue());
2421
}
2522

26-
/**
27-
* @covers ::submissionValue
28-
*/
2923
public function testSubmissionValueHandlesDates(): void
3024
{
3125
$date = $this->getComponent(submissionValue: '2021-03-25T12:00:00-05:00');

tests/Components/Inputs/DayTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Northwestern\SysDev\DynamicForms\Tests\Components\TestCases\InputComponentTestCase;
88
use PHPUnit\Framework\Attributes\DataProvider;
99

10-
/**
11-
* @coversDefaultClass \Northwestern\SysDev\DynamicForms\Components\Inputs\Day
12-
*/
1310
final class DayTest extends InputComponentTestCase
1411
{
1512
protected string $componentClass = Day::class;

0 commit comments

Comments
 (0)