Add qualifier functions; bump to PHP 8.5
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user