Migrate tests to Pest #8
19
tests/Unit/QueryTest.php
Normal file
19
tests/Unit/QueryTest.php
Normal 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');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user