Skip to content

Commit 3bb0204

Browse files
committed
wip
1 parent e73b272 commit 3bb0204

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/Integration/Database/QueryTest.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,18 @@ public function test_with_bindings(): void
3333
new Query('DELETE FROM authors WHERE name = :name')->execute(name: 'A');
3434
$this->assertCount(0, new Query('SELECT * FROM authors WHERE name = ?')->fetch('A'));
3535
}
36-
36+
3737
public function test_raw_sql_enum_value(): void
3838
{
39-
$this->assertTrue(new Query('?', [UnitEnumFixture::FOO])->toRawSql()->equals(UnitEnumFixture::FOO->name));
40-
$this->assertTrue(new Query('?', [BackedEnumFixture::FOO])->toRawSql()->equals(BackedEnumFixture::FOO->value));
39+
$this->assertTrue(
40+
new Query('?', [UnitEnumFixture::FOO])
41+
->toRawSql()
42+
->equals(UnitEnumFixture::FOO->name),
43+
);
44+
$this->assertTrue(
45+
new Query('?', [BackedEnumFixture::FOO])
46+
->toRawSql()
47+
->equals(BackedEnumFixture::FOO->value),
48+
);
4149
}
4250
}

0 commit comments

Comments
 (0)