From 56ba34707beb3f749c9be0aaa3a043288e35c179 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Sat, 14 Oct 2023 14:33:53 -0400 Subject: [PATCH] Use EmulatedConnection name method --- src/Testing/EmulatesQueries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Testing/EmulatesQueries.php b/src/Testing/EmulatesQueries.php index 756bef4..772ce6b 100644 --- a/src/Testing/EmulatesQueries.php +++ b/src/Testing/EmulatesQueries.php @@ -139,7 +139,7 @@ public function orFilter(Closure $closure): static */ public function findEloquentModelByDn(string $dn): ?LdapObject { - return $this->newEloquentModel()->findByDn($dn, $this->model->getConnectionName()); + return $this->newEloquentModel()->findByDn($dn, $this->getConnection()->name()); } /** @@ -147,7 +147,7 @@ public function findEloquentModelByDn(string $dn): ?LdapObject */ public function findEloquentModelByGuid(string $guid): ?LdapObject { - return $this->newEloquentModel()->findByGuid($guid, $this->model->getConnectionName()); + return $this->newEloquentModel()->findByGuid($guid, $this->getConnection()->name()); } /**