PHP Trait LukePOLO\LaraCart\Tests\LaraCartTestTrait

Datei anzeigen Open project: lukepolo/laracart

Public Methods

Method Description
setUp ( ) Setup the test functions with laracart.

Protected Methods

Method Description
getEnvironmentSetUp ( $app ) Default tax setup.
getPackageProviders ( $app ) : array Sets the package providers.

Private Methods

Method Description
addItem ( integer $qty = 1, integer $price = 1, boolean $taxable = true, array $options = [] ) : mixed Easy way to add an item for many tests.

Method Details

getEnvironmentSetUp() protected method

Default tax setup.
protected getEnvironmentSetUp ( $app )
$app

getPackageProviders() protected method

Sets the package providers.
protected getPackageProviders ( $app ) : array
$app
return array

setUp() public method

Setup the test functions with laracart.
public setUp ( )