Skip to content

Commit df57d42

Browse files
committed
test: fix TableDefinitionTest
1 parent 566c065 commit df57d42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/Unit/TableDefinitionTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,21 @@
109109
);
110110

111111
assertEquals(
112-
"INTO TABLE users\nFIELDS CSV WITHOUT EMBEDDED\n(\n id,\n name,\n email\n)\n",
113-
$table
112+
"INTO TABLE users\nFIELDS CSV WITH EMBEDDED\n(\n id,\n name,\n email\n)\n",
113+
$table->__toString()
114114
);
115115
});
116116

117-
test('it can build with csv format with embedded', function () {
117+
test('it can build with csv format without embedded', function () {
118118
$table = new TableDefinition(
119119
'users',
120120
['id', 'name', 'email'],
121121
csv: true,
122-
withEmbedded: true,
122+
withEmbedded: false,
123123
);
124124

125125
assertEquals(
126-
"INTO TABLE users\nFIELDS CSV WITH EMBEDDED\n(\n id,\n name,\n email\n)\n",
126+
"INTO TABLE users\nFIELDS CSV WITHOUT EMBEDDED\n(\n id,\n name,\n email\n)\n",
127127
$table
128128
);
129129
});

0 commit comments

Comments
 (0)