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'); + }); +});