Skip to content

Commit

Permalink
test: trailing nullcols
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed May 29, 2024
1 parent 0eedfa2 commit 3155464
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/ControlFileBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
->into(
table: 'users',
columns: ['id', 'name', 'email'],
terminatedBy: ',',
optionally: true,
enclosedBy: '"'
trailing: 'TRAILING NULLCOLS'
);

$ctl = new ControlFileBuilder($loader);
Expand All @@ -28,6 +26,7 @@
->and($controlFile)->toContain("FIELDS TERMINATED BY ','")
->and($controlFile)->toContain('OPTIONALLY')
->and($controlFile)->toContain("ENCLOSED BY '\"'")
->and($controlFile)->toContain('TRAILING NULLCOLS')
->and($controlFile)->toContain('(')
->and($controlFile)->toContain('id,')
->and($controlFile)->toContain('name,')
Expand Down

0 comments on commit 3155464

Please sign in to comment.