Skip to content

Commit

Permalink
test cases updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapan-Tops committed Mar 8, 2024
1 parent d30d63f commit 9a94918
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/Unit/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
});

it('can search encrypted data', function () {
dd(Testing::query()->whereEncryptedLike('value', 'hello')->first());
$this->assertCount(1, Testing::query()->whereEncryptedLike('value', 'hello')->get());
});

it('can search OrWhereEncryptedLike', function () {
$this->assertCount(1,
Testing::query()
->whereEncryptedLike('value', 'hi')
->orWhereEncryptedLike('value', 'world')
->get()
);
});

0 comments on commit 9a94918

Please sign in to comment.