Skip to content

Commit e8b181d

Browse files
committed
create column in tests
1 parent ca2787a commit e8b181d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Function/Time/LastDayOfMonthTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
it('can compute the last day of month of a column')
1313
->expect(new LastDayOfMonth('date'))
14-
->toBeExecutable()
14+
->toBeExecutable(function (Blueprint $table) {
15+
$table->date('date');
16+
})
1517
->toBeMysql('LAST_DAY(`date`)')
1618
->toBePgsql('DATE_TRUNC(\'month\', "date") + interval \'1 month - 1 day\'')
1719
->toBeSqlite('DATE("date", \'start of month\', \'+1 month\', \'-1 day\')')

0 commit comments

Comments
 (0)