From f757a244b0b82aa923be3ec932bc57f4c96bff8b Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sun, 13 Oct 2024 21:33:01 -0400 Subject: [PATCH] WIP on QueryTest migration --- tests/Unit/QueryTest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/Unit/QueryTest.php diff --git a/tests/Unit/QueryTest.php b/tests/Unit/QueryTest.php new file mode 100644 index 0000000..f7b93ad --- /dev/null +++ b/tests/Unit/QueryTest.php @@ -0,0 +1,19 @@ + + * @license MIT + */ + +declare(strict_types=1); + +use BitBadger\PDODocument\{Configuration, Query}; + +pest()->group('unit'); + +afterEach(function () { Configuration::overrideMode(null); }); + +describe('::selectFromTable()', function () { + test('correctly forms a query', function () { + expect(Query::selectFromTable('testing'))->toBe('SELECT data FROM testing'); + }); +});