pdo-document/tests/Unit/QueryTest.php

20 lines
447 B
PHP
Raw Normal View History

2024-10-14 01:33:01 +00:00
<?php
/**
* @author Daniel J. Summers <daniel@bitbadger.solutions>
* @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');
});
});