From df57d42498e020d00bc6e1d63312b0cbd0ef8f8f Mon Sep 17 00:00:00 2001 From: EJ Beron Date: Thu, 20 Jun 2024 16:05:47 +0800 Subject: [PATCH] test: fix TableDefinitionTest --- tests/Unit/TableDefinitionTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Unit/TableDefinitionTest.php b/tests/Unit/TableDefinitionTest.php index 31aea6d..99bdb2f 100644 --- a/tests/Unit/TableDefinitionTest.php +++ b/tests/Unit/TableDefinitionTest.php @@ -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 ); });