Migrate tests to Pest #8

Merged
danieljsummers merged 11 commits from test-migration into v1 2024-11-17 21:30:54 +00:00
Showing only changes of commit f757a244b0 - Show all commits

19
tests/Unit/QueryTest.php Normal file
View File

@ -0,0 +1,19 @@
<?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');
});
});