File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
tests/Integration/Database Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments