Skip to content

Commit

Permalink
update test to use current db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mszulik committed Dec 12, 2024
1 parent 4944626 commit cba5551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/feature/RemoteDumpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function addBasicAuthToRequestWhenHtaccessIsUsed()
*/
public function canReturnDatabaseName()
{
Config::set('database.connections.mysql.database', __FUNCTION__);
Config::set(sprintf('database.connections.%s.database', env('DB_CONNECTION')), __FUNCTION__);
$this->protector->withConnectionName();

$this->assertEquals(__FUNCTION__, $this->protector->getDatabaseName());
Expand Down

0 comments on commit cba5551

Please sign in to comment.