github.com/goravel/framework@v1.13.9/testing/service_provider.go (about) 1 package testing 2 3 import ( 4 contractsconsole "github.com/goravel/framework/contracts/console" 5 "github.com/goravel/framework/contracts/foundation" 6 ) 7 8 const Binding = "goravel.testing" 9 10 var artisanFacades contractsconsole.Artisan 11 12 type ServiceProvider struct { 13 } 14 15 func (receiver *ServiceProvider) Register(app foundation.Application) { 16 app.Singleton(Binding, func(app foundation.Application) (any, error) { 17 return NewApplication(app), nil 18 }) 19 } 20 21 func (receiver *ServiceProvider) Boot(app foundation.Application) { 22 artisanFacades = app.MakeArtisan() 23 }