Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 5, 2023
1 parent ac7e93d commit 24c431a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/docker/docker.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package docker

import (
"github.com/goravel/framework/contracts/database/gorm"
"github.com/goravel/framework/contracts/foundation"
"github.com/goravel/framework/contracts/testing"
"github.com/goravel/framework/database"
)

type Docker struct {
Expand All @@ -18,8 +18,8 @@ func NewDocker(app foundation.Application) *Docker {

func (receiver *Docker) Database(connection ...string) (testing.Database, error) {
if len(connection) == 0 {
return NewDatabase(receiver.app, "", gorm.NewInitializeImpl())
return NewDatabase(receiver.app, "", database.NewInitializeImpl())
} else {
return NewDatabase(receiver.app, connection[0], gorm.NewInitializeImpl())
return NewDatabase(receiver.app, connection[0], database.NewInitializeImpl())
}
}

0 comments on commit 24c431a

Please sign in to comment.