Skip to content

Commit

Permalink
test: fix TableDefinitionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
EJ-OB committed Jun 20, 2024
1 parent 566c065 commit df57d42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/TableDefinitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,21 @@
);

assertEquals(
"INTO TABLE users\nFIELDS CSV WITHOUT EMBEDDED\n(\n id,\n name,\n email\n)\n",
$table
"INTO TABLE users\nFIELDS CSV WITH EMBEDDED\n(\n id,\n name,\n email\n)\n",
$table->__toString()
);
});

test('it can build with csv format with embedded', function () {
test('it can build with csv format without embedded', function () {
$table = new TableDefinition(
'users',
['id', 'name', 'email'],
csv: true,
withEmbedded: true,
withEmbedded: false,
);

assertEquals(
"INTO TABLE users\nFIELDS CSV WITH EMBEDDED\n(\n id,\n name,\n email\n)\n",
"INTO TABLE users\nFIELDS CSV WITHOUT EMBEDDED\n(\n id,\n name,\n email\n)\n",
$table
);
});

0 comments on commit df57d42

Please sign in to comment.