Skip to content

Commit

Permalink
Use EmulatedConnection name method
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Oct 14, 2023
1 parent 138acd5 commit 56ba347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Testing/EmulatesQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ 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());
}

/**
* Find the Eloquent model by guid.
*/
public function findEloquentModelByGuid(string $guid): ?LdapObject
{
return $this->newEloquentModel()->findByGuid($guid, $this->model->getConnectionName());
return $this->newEloquentModel()->findByGuid($guid, $this->getConnection()->name());
}

/**
Expand Down

0 comments on commit 56ba347

Please sign in to comment.