diff --git a/src/Testing/Emulated/EmulatesModelQueries.php b/src/Testing/Emulated/EmulatesModelQueries.php index 09d35036..6e812d9e 100644 --- a/src/Testing/Emulated/EmulatesModelQueries.php +++ b/src/Testing/Emulated/EmulatesModelQueries.php @@ -11,6 +11,7 @@ trait EmulatesModelQueries { use EmulatesQueries { + findOrFail as baseFindOrFail; addFilterToDatabaseQuery as baseAddFilterToDatabaseQuery; } @@ -139,6 +140,14 @@ protected function resultToModelInstance($result): Model ); } + /** + * {@inheritdoc} + */ + public function findOrFail(string $dn, array|string $columns = ['*']): Model + { + return $this->baseFindOrFail($dn, $columns); + } + /** * {@inheritdoc} */