Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
2026-01-24 22:34:54 +00:00
parent 8ff7a36752
commit cc19cc9ce1
9 changed files with 737 additions and 601 deletions

View File

@@ -192,6 +192,21 @@ describe('->toWhere()', function () {
})->group('sqlite');
});
describe('->andQualifier()', function() {
test('adds a qualifier', function () {
expect(Field::equal('that', '82')->andQualifier('this'))->qualifier->toBe('this');
});
});
describe('::withQualifier()', function() {
test('adds a qualifier to a new instance', function () {
$field = Field::equal('that', '14');
$field2 = Field::withQualifier('this')($field);
expect($field)->qualifier->toBe('')
->and($field2)->qualifier->toBe('this');
});
});
describe('::equal()', function () {
test('creates Field w/o parameter', function () {
$field = Field::equal('my_test', 9);