Skip to content

Commit e7f697e

Browse files
committed
wip
1 parent 9fc65d3 commit e7f697e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

tests/Integration/Database/QueryStatements/AlterTableStatementTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ public function test_it_can_alter_a_table_definition(): void
4545
4646
);
4747
} catch (QueryWasInvalid $queryWasInvalid) {
48-
$message = match ($this->container->get(DatabaseConfig::class)?->dialect) {
48+
$message = match ($this->container->get(DatabaseConfig::class)->dialect) {
4949
DatabaseDialect::MYSQL => "Unknown column 'email'",
5050
DatabaseDialect::SQLITE => 'table users has no column named email',
5151
DatabaseDialect::POSTGRESQL => 'column "email" of relation "users" does not exist',
52-
null => throw new RuntimeException('No database dialect available'),
5352
};
5453

5554
$this->assertStringContainsString($message, $queryWasInvalid->getMessage());

tests/Integration/Database/QueryStatements/CreateTableStatementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public function up(): QueryStatement
6767
}
6868
};
6969

70-
$dialect = $this->container->get(DatabaseConfig::class)?->dialect;
70+
$dialect = $this->container->get(DatabaseConfig::class)->dialect;
71+
7172
match ($dialect) {
7273
DatabaseDialect::MYSQL => $this->expectNotToPerformAssertions(),
7374
DatabaseDialect::SQLITE => $this->expectException(DialectWasNotSupported::class),
7475
DatabaseDialect::POSTGRESQL => $this->expectException(DialectWasNotSupported::class),
75-
null => throw new RuntimeException('No database dialect available'),
7676
};
7777

7878
$this->migrate(

tests/Integration/View/Components/IconComponentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function test_it_caches_icons_on_the_first_render(): void
9191
$this->render('<x-icon name="ph:eye" />');
9292

9393
$iconCache = $this->container->get(IconCache::class);
94-
$cachedIcon = $iconCache?->get('icon-ph-eye');
94+
$cachedIcon = $iconCache->get('icon-ph-eye');
9595

9696
$this->assertNotNull($cachedIcon);
9797
$this->assertSame('<svg></svg>', $cachedIcon);

0 commit comments

Comments
 (0)