Skip to content

Commit 0424270

Browse files
Update grammar assersions based on changes in laravel/framework#51373
The queries themselves were not changed, however, the statements are now generated as separate array items, rather than as a single query. Pinned minimum framework version to `^11.15` and lifted package to PHP `^8.2`, seeing as we need these as minimums to satisfy these changes here.
1 parent efb9dd3 commit 0424270

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [8.3, 8.2, 8.1]
17-
laravel: ['^10.0', '^11.0']
18-
exclude:
19-
- laravel: '^11.0'
20-
php: 8.1
16+
php: [8.3, 8.2]
17+
laravel: ['^11.15']
2118

2219
name: P${{ matrix.php }} - L${{ matrix.laravel }}
2320

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1",
20-
"illuminate/container": "^10.0 || ^11.0",
21-
"illuminate/contracts": "^10.0 || ^11.0",
22-
"illuminate/database": "^10.0 || ^11.0",
23-
"illuminate/events": "^10.0 || ^11.0",
24-
"illuminate/support": "^10.0 || ^11.0",
19+
"php": "^8.2",
20+
"illuminate/container": "^11.15",
21+
"illuminate/contracts": "^11.15",
22+
"illuminate/database": "^11.15",
23+
"illuminate/events": "^11.15",
24+
"illuminate/support": "^11.15",
2525
"ramsey/uuid": "^4.7",
2626
"spatie/laravel-package-tools": "^1.16"
2727
},

tests/Feature/DatabaseMySqlSchemaGrammarTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ public function testAddingUuid()
2525
$connection = m::mock(Connection::class);
2626

2727
$this->assertEquals(
28-
['alter table `users` add `foo` char(36) not null, add `bar` binary(16) not null'],
28+
[
29+
'alter table `users` add `foo` char(36) not null',
30+
'alter table `users` add `bar` binary(16) not null',
31+
],
2932
$blueprint->toSql($connection, new MySqlGrammar)
3033
);
3134
}

tests/Feature/DatabasePostgresSchemaGrammarTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ public function testAddingUuid()
2525
$connection = m::mock(Connection::class);
2626

2727
$this->assertEquals(
28-
['alter table "users" add column "foo" uuid not null, add column "bar" bytea not null'],
28+
[
29+
'alter table "users" add column "foo" uuid not null',
30+
'alter table "users" add column "bar" bytea not null',
31+
],
2932
$blueprint->toSql($connection, new PostgresGrammar)
3033
);
3134
}

tests/Feature/DatabaseSQLiteSchemaGrammarTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function testAddingUuid()
2323
});
2424

2525
$connection = m::mock(Connection::class);
26+
$connection->expects('getServerVersion')->once();
2627

2728
$this->assertEquals(
2829
['alter table "users" add column "foo" varchar not null', 'alter table "users" add column "bar" blob(256) not null'],

0 commit comments

Comments
 (0)