trait
Illuminate
/
Foundation
/
Testing
/
Concerns
/
InteractsWithContainer
InteractsWithContainer
Properties
Methods
protected
swap ( $abstract , $instance ) : object
Register an instance of an object in the container.
Parameters
- $abstract string
- $instance object
protected
instance ( $abstract , $instance ) : object
Register an instance of an object in the container.
Parameters
- $abstract string
- $instance object
protected
mock ( $abstract , Closure $mock ) : Mockery\MockInterface
Mock an instance of an object in the container.
Parameters
- $abstract string
- $mock Closure |null
protected
partialMock ( $abstract , Closure $mock ) : Mockery\MockInterface
Mock a partial instance of an object in the container.
Parameters
- $abstract string
- $mock Closure |null
protected
spy ( $abstract , Closure $mock ) : Mockery\MockInterface
Spy an instance of an object in the container.
Parameters
- $abstract string
- $mock Closure |null
protected
forgetMock ( $abstract ) : $this
Instruct the container to forget a previously mocked / spied instance of an object.
Parameters
- $abstract string
protected
withoutVite ( ) : $this
Register an empty handler for Vite in the container.
protected
withVite ( ) : $this
Restore Vite in the container.
protected
withoutMix ( ) : $this
Register an empty handler for Laravel Mix in the container.
protected
withMix ( ) : $this
Restore Laravel Mix in the container.