PHP Class Eccube\Tests\Web\Admin\Product\ProductControllerTest

Show file Open project: ec-cube/ec-cube

Public Methods

Method Description
createFormData ( )
dataEditProductProvider ( ) : array 個別税率編集時のテストデータ 更新前の税率 / POST値 / 期待値の配列を返す
dataNewProductProvider ( )
testCopy ( )
testDelete ( )
testEditWithPost ( )
testEditWithPostTaxRate ( $before, $after, $expected ) 個別税率設定のテストケース 個別税率設定を有効にし、商品編集時に更新されることを確認する
testNewWithPostTaxRate ( $taxRate, $expected )
testRoutingAdminProductProduct ( )
testRoutingAdminProductProductEdit ( )
testRoutingAdminProductProductNew ( )

Private Methods

Method Description
newTestProduct ( $TestCreator )
newTestProductClass ( $TestCreator, $TestProduct )
newTestProductStock ( $TestCreator, $TestProduct, $TestProductClass )

Method Details

createFormData() public method

public createFormData ( )

dataEditProductProvider() public method

個別税率編集時のテストデータ 更新前の税率 / POST値 / 期待値の配列を返す
public dataEditProductProvider ( ) : array
return array

dataNewProductProvider() public method

testCopy() public method

public testCopy ( )

testDelete() public method

public testDelete ( )

testEditWithPost() public method

public testEditWithPost ( )

testEditWithPostTaxRate() public method

個別税率設定のテストケース 個別税率設定を有効にし、商品編集時に更新されることを確認する
See also: https://github.com/EC-CUBE/ec-cube/issues/1547
public testEditWithPostTaxRate ( $before, $after, $expected )
$before 更新前の税率
$after POST値
$expected 期待値

testNewWithPostTaxRate() public method

public testNewWithPostTaxRate ( $taxRate, $expected )
$taxRate
$expected

testRoutingAdminProductProduct() public method

testRoutingAdminProductProductEdit() public method

testRoutingAdminProductProductNew() public method