CartValidationTest extends AbstractWebTestCase
Abstract class that other unit tests can extend, provides generic methods for EC-CUBE tests.
Table of Contents
$productStatusRepository | ProductStatusRepository | |
---|---|---|
$cartService | CartService | |
$BaseInfo | BaseInfo | |
$actual | ||
$expected | ||
$client | Client | |
$container | ContainerInterface | |
$entityManager | EntityManagerInterface | |
$eccubeConfig | EccubeConfig | |
setUp() | setup mail | mixed |
tearDown() | tear down | mixed |
testValidationStock() | 在庫制限チェック | mixed |
testProductInCartDeleted() | Test product in cart when product is deleting. | mixed |
testProductInCartIsPrivate() | Test product in cart when product is private. | mixed |
testProductInCartIsStockOut() | Test product in cart when product is stock out. | mixed |
testProductInCartIsStockOutWithProductClass() | Test product in cart when product is stock out. | mixed |
testProductInCartIsNotEnough() | Test product in cart when product is not enough | mixed |
testProductInCartIsNotEnoughAndLimit() | 金額の上限と販売制限確認 | mixed |
testProductInCartSaleType() | Test product in cart when product has other type | mixed |
testProductInCartSaleTypeWithMultiShipping() | Test product in cart when product has other type with MultiShipping enable add cart | mixed |
testProductInCartStockLimit() | Test product in cart when product stock sale limit | mixed |
testProductInCartIsAbolishedFromShopping() | Test product in cart when product is abolished by shopping step | mixed |
testProductInCartIsPrivateFromShopping() | Test product in cart when product is private from shopping step | mixed |
testProductInCartOutOfStockFromShopping() | Test product in cart when product out of stock from shopping step | mixed |
testProductInCartStockNotEnoughFromShopping() | Test product in cart when product stock not enough from shopping step | mixed |
atestProductInCartStockLimitFromShopping() | Test product in cart when product stock is limit from shopping step | mixed |
atestProductInCartSaleTypeFromShopping() | Test product in cart when product type change from shopping step | mixed |
testProductInCartIsDeletedBeforePlus() | Test product in cart when product is deleting before plus one | mixed |
testProductInCartIsPrivateBeforePlus() | Test product in cart when product is private before plus one | mixed |
testProductInCartProductOutOfStockBeforePlus() | Test product in cart when product out of stock before plus one | mixed |
testProductInCartProductStockIsNotEnoughBeforePlus() | Test product in cart when product is not enough before plus one | mixed |
testProductInCartSaleLimitIsNotEnoughBeforePlus() | Test product in cart when product sale limit is not enough before plus one | mixed |
testProductInCartChangeSaleTypeBeforePlus() | Test product in cart when product type is changing before plus one | mixed |
testProductInCartChangeSaleTypeBeforePlusWithMultiShipping() | Test product in cart when product type is changing before plus one with MultiShipping enable add cart | mixed |
testProductInCartIsDeletedBeforeMinus() | Test product in cart when product is deleting before plus one | mixed |
testProductInCartIsPrivateBeforeMinus() | Test product in cart when product is private before Minus one | mixed |
testProductInCartProductOutOfStockBeforeMinus() | Test product in cart when product out of stock before Minus one | mixed |
testProductInCartProductStockIsNotEnoughBeforeMinus() | Test product in cart when product is not enough before Minus one | mixed |
testProductInCartSaleLimitIsNotEnoughBeforeMinus() | Test product in cart when product sale limit is not enough before Minus one | mixed |
testProductInCartChangeSaleTypeBeforeMinus() | Test product in cart when product type is changing before Minus one | mixed |
testProductInCartChangeSaleTypeBeforeMinusWithMultiShipping() | Test product in cart when product type is changing before Minus one with MultiShipping enable add cart | mixed |
testProductInCartIsDeletedWhileReturnTopPage() | Test product in cart when product is deleting on the top page | mixed |
testProductInCartIsPrivateWhileReturnTopPage() | Test product in cart when product is private on the top page | mixed |
testProductInCartProductOutOfStockWhileReturnTopPage() | Test product in cart when product out of stock on the top page | mixed |
testProductInCartProductStockIsNotEnoughWhileReturnTopPage() | Test product in cart when product is not enough before Minus one | mixed |
testProductInCartSaleLimitIsNotEnoughWhileReturnTopPage() | Test product in cart when product sale limit is not enough before Minus one | mixed |
testProductInCartDeletedFromShoppingBackToCart() | Test product in cart when product is deleting by shopping step back to cart | mixed |
testProductInCartIsPrivateFromShoppingBackToCart() | Test product in cart when product is private from shopping step back to cart | mixed |
testProductInCartOutOfStockFromShoppingBackToCart() | Test product in cart when product out of stock from shopping step back to cart | mixed |
testProductInCartStockNotEnoughFromShoppingBackToCart() | Test product in cart when product stock not enough from shopping step back to cart | mixed |
testProductInCartStockLimitFromShoppingBackToCart() | Test product in cart when product stock is limit from shopping step back to cart | mixed |
testProductInCartDeletedFromShoppingChangePayment() | Test product in cart when product is deleting by shopping step change payment | mixed |
testProductInCartIsPrivateFromShoppingChangePayment() | Test product in cart when product is private from shopping step change payment | mixed |
testProductInCartOutOfStockFromShoppingChangePayment() | Test product in cart when product out of stock from shopping step change payment | mixed |
testProductInCartStockNotEnoughFromShoppingChangePayment() | Test product in cart when product stock not enough from shopping step change payment | mixed |
testProductInCartStockLimitFromShoppingChangePayment() | Test product in cart when product stock is limit from shopping step change payment | mixed |
testProductInHistoryOrderDeletedFromOrderAgain() | Test product in history order when product is deleting by order again function | mixed |
testProductInHistoryOrderIsPrivateFromOrderAgain() | Test product in history order when product is private from order again function | mixed |
testProductInHistoryOrderOutOfStockFromOrderAgain() | Test product in history order when product out of stock from order again funtion | mixed |
testProductInHistoryOrderStockNotEnoughFromOrderAgain() | Test product in history order when product stock not enough from order again function | mixed |
testProductInHistoryOrderStockLimitFromOrderAgain() | Test product in history order when product stock is limit from order again function | mixed |
testProductInHistoryOrderWhenSaleTypeIsChangedFromOrderAgain() | Test product in history order when product type is changed from order again function | mixed |
testProductInHistoryOrderWhenSaleTypeIsChangedFromOrderAgainWithMultiShipping() | Test product in history order when product type is changed from order again function with MultiShipping enable add cart | mixed |
scenarioCartIn() | mixed | |
scenarioConfirm() | mixed | |
scenarioComplete() | mixed | |
scenarioCartUp() | mixed | |
scenarioCartDown() | Crawler | |
changeStatus() | Product | |
changeStock() | ProductClass | |
deleteAllProduct() | Delete all product | mixed |
createProduct() | Product | |
getProductName() | エラーに表示する商品名を取得 | string |
setUp() | Client を生成しトランザクションを開始する. | mixed |
tearDown() | トランザクションをロールバックする. | mixed |
logIn() | mixed | |
loginTo() | User をログインさせてHttpKernel\Client を返す. | Client |
getFaker() | Faker を生成する. | Generator |
verify() | Expected と Actual を比較する. | mixed |
createMember() | Member オブジェクトを生成して返す. | Member |
createCustomer() | Customer オブジェクトを生成して返す. | Customer |
createCustomerAddress() | CustomerAddress を生成して返す. | CustomerAddress |
createNonMember() | 非会員の Customer オブジェクトを生成して返す. | Customer |
createProduct() | Product オブジェクトを生成して返す. | Product |
createOrder() | Order オブジェクトを生成して返す. | Order |
createOrderWithProductClasses() | Order オブジェクトを生成して返す. | Order |
createPayment() | Payment オプジェクトを生成して返す. | Payment |
createPage() | Page オブジェクトを生成して返す | Page |
deleteAllRows() | テーブルのデータを全て削除する. | mixed |
cleanUpProperties() | PHPUnit インスタンスのプロパティを初期化する. | mixed |
initializeMailCatcher() | MailCatcher を初期化する. | mixed |
checkMailCatcherStatus() | MailCatcher の起動状態をチェックする. | mixed |
cleanUpMailCatcherMessages() | MailCatcher のメッセージをすべて削除する. | mixed |
getMailCatcherMessages() | MailCatcher のメッセージをすべて取得する. | array |
getMailCatcherMessage() | MailCatcher のメッセージを ID を指定して取得する. | object |
parseMailCatcherSource() | MailCatcher のメッセージソースをデコードする. | string |
getMailCollector() | Get the MailCollector | MessageDataCollector |
generateUrl() | Generates a URL from the given parameters. | string |
getCsrfToken() | Returns a CSRF token for the given ID. | CsrfToken |
Properties
$productStatusRepository
private
ProductStatusRepository
$productStatusRepository
$cartService
private
CartService
$cartService
$BaseInfo
private
BaseInfo
$BaseInfo
$actual
protected
mixed
$actual
$expected
protected
mixed
$expected
$client
protected
Client
$client
$container
protected
ContainerInterface
$container
$entityManager
protected
EntityManagerInterface
$entityManager
$eccubeConfig
protected
EccubeConfig
$eccubeConfig
Methods
setUp()
setup mail
public
setUp(
)
: mixed
Return values
mixedtearDown()
tear down
public
tearDown(
)
: mixed
Return values
mixedtestValidationStock()
在庫制限チェック
public
testValidationStock(
)
: mixed
Return values
mixedtestProductInCartDeleted()
Test product in cart when product is deleting.
public
testProductInCartDeleted(
)
: mixed
Return values
mixedtestProductInCartIsPrivate()
Test product in cart when product is private.
public
testProductInCartIsPrivate(
)
: mixed
Return values
mixedtestProductInCartIsStockOut()
Test product in cart when product is stock out.
public
testProductInCartIsStockOut(
)
: mixed
Tags
Return values
mixedtestProductInCartIsStockOutWithProductClass()
Test product in cart when product is stock out.
public
testProductInCartIsStockOutWithProductClass(
)
: mixed
Tags
Return values
mixedtestProductInCartIsNotEnough()
Test product in cart when product is not enough
public
testProductInCartIsNotEnough(
)
: mixed
Return values
mixedtestProductInCartIsNotEnoughAndLimit()
金額の上限と販売制限確認
public
testProductInCartIsNotEnoughAndLimit(
)
: mixed
Return values
mixedtestProductInCartSaleType()
Test product in cart when product has other type
public
testProductInCartSaleType(
)
: mixed
Return values
mixedtestProductInCartSaleTypeWithMultiShipping()
Test product in cart when product has other type with MultiShipping enable add cart
public
testProductInCartSaleTypeWithMultiShipping(
)
: mixed
Return values
mixedtestProductInCartStockLimit()
Test product in cart when product stock sale limit
public
testProductInCartStockLimit(
)
: mixed
Return values
mixedtestProductInCartIsAbolishedFromShopping()
Test product in cart when product is abolished by shopping step
public
testProductInCartIsAbolishedFromShopping(
)
: mixed
Return values
mixedtestProductInCartIsPrivateFromShopping()
Test product in cart when product is private from shopping step
public
testProductInCartIsPrivateFromShopping(
)
: mixed
Return values
mixedtestProductInCartOutOfStockFromShopping()
Test product in cart when product out of stock from shopping step
public
testProductInCartOutOfStockFromShopping(
)
: mixed
Return values
mixedtestProductInCartStockNotEnoughFromShopping()
Test product in cart when product stock not enough from shopping step
public
testProductInCartStockNotEnoughFromShopping(
)
: mixed
Return values
mixedatestProductInCartStockLimitFromShopping()
Test product in cart when product stock is limit from shopping step
public
atestProductInCartStockLimitFromShopping(
)
: mixed
Return values
mixedatestProductInCartSaleTypeFromShopping()
Test product in cart when product type change from shopping step
public
atestProductInCartSaleTypeFromShopping(
)
: mixed
Return values
mixedtestProductInCartIsDeletedBeforePlus()
Test product in cart when product is deleting before plus one
public
testProductInCartIsDeletedBeforePlus(
)
: mixed
Return values
mixedtestProductInCartIsPrivateBeforePlus()
Test product in cart when product is private before plus one
public
testProductInCartIsPrivateBeforePlus(
)
: mixed
Return values
mixedtestProductInCartProductOutOfStockBeforePlus()
Test product in cart when product out of stock before plus one
public
testProductInCartProductOutOfStockBeforePlus(
)
: mixed
Return values
mixedtestProductInCartProductStockIsNotEnoughBeforePlus()
Test product in cart when product is not enough before plus one
public
testProductInCartProductStockIsNotEnoughBeforePlus(
)
: mixed
Return values
mixedtestProductInCartSaleLimitIsNotEnoughBeforePlus()
Test product in cart when product sale limit is not enough before plus one
public
testProductInCartSaleLimitIsNotEnoughBeforePlus(
)
: mixed
Return values
mixedtestProductInCartChangeSaleTypeBeforePlus()
Test product in cart when product type is changing before plus one
public
testProductInCartChangeSaleTypeBeforePlus(
)
: mixed
Return values
mixedtestProductInCartChangeSaleTypeBeforePlusWithMultiShipping()
Test product in cart when product type is changing before plus one with MultiShipping enable add cart
public
testProductInCartChangeSaleTypeBeforePlusWithMultiShipping(
)
: mixed
Return values
mixedtestProductInCartIsDeletedBeforeMinus()
Test product in cart when product is deleting before plus one
public
testProductInCartIsDeletedBeforeMinus(
)
: mixed
Return values
mixedtestProductInCartIsPrivateBeforeMinus()
Test product in cart when product is private before Minus one
public
testProductInCartIsPrivateBeforeMinus(
)
: mixed
Return values
mixedtestProductInCartProductOutOfStockBeforeMinus()
Test product in cart when product out of stock before Minus one
public
testProductInCartProductOutOfStockBeforeMinus(
)
: mixed
Return values
mixedtestProductInCartProductStockIsNotEnoughBeforeMinus()
Test product in cart when product is not enough before Minus one
public
testProductInCartProductStockIsNotEnoughBeforeMinus(
)
: mixed
Return values
mixedtestProductInCartSaleLimitIsNotEnoughBeforeMinus()
Test product in cart when product sale limit is not enough before Minus one
public
testProductInCartSaleLimitIsNotEnoughBeforeMinus(
)
: mixed
Return values
mixedtestProductInCartChangeSaleTypeBeforeMinus()
Test product in cart when product type is changing before Minus one
public
testProductInCartChangeSaleTypeBeforeMinus(
)
: mixed
Return values
mixedtestProductInCartChangeSaleTypeBeforeMinusWithMultiShipping()
Test product in cart when product type is changing before Minus one with MultiShipping enable add cart
public
testProductInCartChangeSaleTypeBeforeMinusWithMultiShipping(
)
: mixed
Return values
mixedtestProductInCartIsDeletedWhileReturnTopPage()
Test product in cart when product is deleting on the top page
public
testProductInCartIsDeletedWhileReturnTopPage(
)
: mixed
Return values
mixedtestProductInCartIsPrivateWhileReturnTopPage()
Test product in cart when product is private on the top page
public
testProductInCartIsPrivateWhileReturnTopPage(
)
: mixed
Return values
mixedtestProductInCartProductOutOfStockWhileReturnTopPage()
Test product in cart when product out of stock on the top page
public
testProductInCartProductOutOfStockWhileReturnTopPage(
)
: mixed
Return values
mixedtestProductInCartProductStockIsNotEnoughWhileReturnTopPage()
Test product in cart when product is not enough before Minus one
public
testProductInCartProductStockIsNotEnoughWhileReturnTopPage(
)
: mixed
Return values
mixedtestProductInCartSaleLimitIsNotEnoughWhileReturnTopPage()
Test product in cart when product sale limit is not enough before Minus one
public
testProductInCartSaleLimitIsNotEnoughWhileReturnTopPage(
)
: mixed
Return values
mixedtestProductInCartDeletedFromShoppingBackToCart()
Test product in cart when product is deleting by shopping step back to cart
public
testProductInCartDeletedFromShoppingBackToCart(
)
: mixed
Return values
mixedtestProductInCartIsPrivateFromShoppingBackToCart()
Test product in cart when product is private from shopping step back to cart
public
testProductInCartIsPrivateFromShoppingBackToCart(
)
: mixed
Return values
mixedtestProductInCartOutOfStockFromShoppingBackToCart()
Test product in cart when product out of stock from shopping step back to cart
public
testProductInCartOutOfStockFromShoppingBackToCart(
)
: mixed
Return values
mixedtestProductInCartStockNotEnoughFromShoppingBackToCart()
Test product in cart when product stock not enough from shopping step back to cart
public
testProductInCartStockNotEnoughFromShoppingBackToCart(
)
: mixed
Return values
mixedtestProductInCartStockLimitFromShoppingBackToCart()
Test product in cart when product stock is limit from shopping step back to cart
public
testProductInCartStockLimitFromShoppingBackToCart(
)
: mixed
Return values
mixedtestProductInCartDeletedFromShoppingChangePayment()
Test product in cart when product is deleting by shopping step change payment
public
testProductInCartDeletedFromShoppingChangePayment(
)
: mixed
Return values
mixedtestProductInCartIsPrivateFromShoppingChangePayment()
Test product in cart when product is private from shopping step change payment
public
testProductInCartIsPrivateFromShoppingChangePayment(
)
: mixed
Return values
mixedtestProductInCartOutOfStockFromShoppingChangePayment()
Test product in cart when product out of stock from shopping step change payment
public
testProductInCartOutOfStockFromShoppingChangePayment(
)
: mixed
Return values
mixedtestProductInCartStockNotEnoughFromShoppingChangePayment()
Test product in cart when product stock not enough from shopping step change payment
public
testProductInCartStockNotEnoughFromShoppingChangePayment(
)
: mixed
Return values
mixedtestProductInCartStockLimitFromShoppingChangePayment()
Test product in cart when product stock is limit from shopping step change payment
public
testProductInCartStockLimitFromShoppingChangePayment(
)
: mixed
Return values
mixedtestProductInHistoryOrderDeletedFromOrderAgain()
Test product in history order when product is deleting by order again function
public
testProductInHistoryOrderDeletedFromOrderAgain(
)
: mixed
Return values
mixedtestProductInHistoryOrderIsPrivateFromOrderAgain()
Test product in history order when product is private from order again function
public
testProductInHistoryOrderIsPrivateFromOrderAgain(
)
: mixed
Return values
mixedtestProductInHistoryOrderOutOfStockFromOrderAgain()
Test product in history order when product out of stock from order again funtion
public
testProductInHistoryOrderOutOfStockFromOrderAgain(
)
: mixed
Return values
mixedtestProductInHistoryOrderStockNotEnoughFromOrderAgain()
Test product in history order when product stock not enough from order again function
public
testProductInHistoryOrderStockNotEnoughFromOrderAgain(
)
: mixed
Return values
mixedtestProductInHistoryOrderStockLimitFromOrderAgain()
Test product in history order when product stock is limit from order again function
public
testProductInHistoryOrderStockLimitFromOrderAgain(
)
: mixed
Return values
mixedtestProductInHistoryOrderWhenSaleTypeIsChangedFromOrderAgain()
Test product in history order when product type is changed from order again function
public
testProductInHistoryOrderWhenSaleTypeIsChangedFromOrderAgain(
)
: mixed
Return values
mixedtestProductInHistoryOrderWhenSaleTypeIsChangedFromOrderAgainWithMultiShipping()
Test product in history order when product type is changed from order again function with MultiShipping enable add cart
public
testProductInHistoryOrderWhenSaleTypeIsChangedFromOrderAgainWithMultiShipping(
)
: mixed
Return values
mixedscenarioCartIn()
protected
scenarioCartIn(
$Customer :
Customer
, $ProductClass :
ProductClass
[, $num :
int
= 1 ]
)
: mixed
Parameters
- $Customer : Customer
- $ProductClass : ProductClass
- $num : int = 1
Return values
mixedscenarioConfirm()
protected
scenarioConfirm(
$Customer :
Customer
, $ProductClass :
ProductClass
)
: mixed
Parameters
- $Customer : Customer
- $ProductClass : ProductClass
Return values
mixedscenarioComplete()
protected
scenarioComplete(
$Customer :
[, $confirmUrl :
string
= '' ]
[, $arrShopping :
array
= [] ]
)
: mixed
Parameters
Return values
mixedscenarioCartUp()
protected
scenarioCartUp(
$Customer :
Customer
, $ProductClass :
ProductClass
)
: mixed
Parameters
- $Customer : Customer
- $ProductClass : ProductClass
Return values
mixedscenarioCartDown()
protected
scenarioCartDown(
$Customer :
Customer
, $ProductClass :
ProductClass
)
: Crawler
Parameters
- $Customer : Customer
- $ProductClass : ProductClass
Return values
CrawlerchangeStatus()
protected
changeStatus(
$Product :
Product
[, $display :
int
= ProductStatus::DISPLAY_SHOW ]
)
: Product
Parameters
- $Product : Product
- $display : int = ProductStatus::DISPLAY_SHOW
Return values
ProductchangeStock()
protected
changeStock(
$ProductClass :
ProductClass
, $stock :
int
)
: ProductClass
Parameters
- $ProductClass : ProductClass
- $stock : int
Return values
ProductClassdeleteAllProduct()
Delete all product
protected
deleteAllProduct(
)
: mixed
Return values
mixedcreateProduct()
public
createProduct(
[ $productName :
null
= null ]
[, $productClassNum :
int
= 3 ]
, $stock :
int
)
: Product
Parameters
- $productName : null = null
- $productClassNum : int = 3
- $stock : int
Return values
ProductgetProductName()
エラーに表示する商品名を取得
private
getProductName(
$ProductClass :
ProductClass
)
: string
Parameters
- $ProductClass : ProductClass
Return values
stringsetUp()
Client を生成しトランザクションを開始する.
public
setUp(
)
: mixed
Return values
mixedtearDown()
トランザクションをロールバックする.
public
tearDown(
)
: mixed
Return values
mixedlogIn()
public
logIn(
[ $user :
mixed
= null ]
)
: mixed
Parameters
- $user : mixed = null
Tags
Return values
mixedloginTo()
User をログインさせてHttpKernel\Client を返す.
public
loginTo(
$User :
UserInterface
)
: Client
EccubeTestCase::getCsrfToken() を使用する場合は, この関数をコールする前に実行すること.
Parameters
- $User : UserInterface
ログインさせる User
Tags
Return values
ClientgetFaker()
Faker を生成する.
public
getFaker(
[ $locale :
string
= 'ja_JP' ]
)
: Generator
Parameters
- $locale : string = 'ja_JP'
ロケールを指定する. デフォルト ja_JP
Tags
Return values
Generatorverify()
Expected と Actual を比較する.
public
verify(
[ $message :
string
= '' ]
)
: mixed
Parameters
- $message : string = ''
エラーメッセージ
Tags
Return values
mixedcreateMember()
Member オブジェクトを生成して返す.
public
createMember(
[ $username :
string
= null ]
)
: Member
Parameters
- $username : string = null
. null の場合は, ランダムなユーザーIDが生成される.
Return values
MembercreateCustomer()
Customer オブジェクトを生成して返す.
public
createCustomer(
[ $email :
string
= null ]
)
: Customer
Parameters
- $email : string = null
メールアドレス. null の場合は, ランダムなメールアドレスが生成される.
Return values
CustomercreateCustomerAddress()
CustomerAddress を生成して返す.
public
createCustomerAddress(
$Customer :
Customer
[, $is_nonmember :
bool
= false ]
)
: CustomerAddress
Parameters
- $Customer : Customer
対象の Customer インスタンス
- $is_nonmember : bool = false
非会員の場合 true
Return values
CustomerAddresscreateNonMember()
非会員の Customer オブジェクトを生成して返す.
public
createNonMember(
[ $email :
string
= null ]
)
: Customer
Parameters
- $email : string = null
メールアドレス. null の場合は, ランダムなメールアドレスが生成される.
Return values
CustomercreateProduct()
Product オブジェクトを生成して返す.
public
createProduct(
[ $product_name :
string
= null ]
[, $product_class_num :
int
= 3 ]
)
: Product
Parameters
- $product_name : string = null
商品名. null の場合はランダムな文字列が生成される.
- $product_class_num : int = 3
商品規格の生成数
Return values
ProductcreateOrder()
Order オブジェクトを生成して返す.
public
createOrder(
$Customer :
Customer
)
: Order
Parameters
- $Customer : Customer
Customer インスタンス
Return values
OrdercreateOrderWithProductClasses()
Order オブジェクトを生成して返す.
public
createOrderWithProductClasses(
$Customer :
Customer
, $ProductClasses :
\Eccube\Entity\ProductClass[]
)
: Order
Parameters
- $Customer : Customer
Customer インスタンス
- $ProductClasses : \Eccube\Entity\ProductClass[]
Return values
OrdercreatePayment()
Payment オプジェクトを生成して返す.
public
createPayment(
$Delivery :
Delivery
, $method :
string
, $charge :
int
, $rule_min :
int
[, $rule_max :
int
= 999999999 ]
)
: Payment
Parameters
- $Delivery : Delivery
デフォルトで設定する配送オブジェクト
- $method : string
支払い方法名称
- $charge : int
手数料
- $rule_min : int
下限金額
- $rule_max : int = 999999999
上限金額
Return values
PaymentcreatePage()
Page オブジェクトを生成して返す
public
createPage(
)
: Page
Return values
PagedeleteAllRows()
テーブルのデータを全て削除する.
public
deleteAllRows(
$tables :
array
)
: mixed
このメソッドは、参照制約の関係で、 Doctrine ORM ではデータ削除できない場合に使用する. 通常は、 EntityManager::remove() を使用して削除すること.
Parameters
- $tables : array
削除対象のテーブル名の配列
Return values
mixedcleanUpProperties()
PHPUnit インスタンスのプロパティを初期化する.
protected
cleanUpProperties(
)
: mixed
このメソッドは、PHPUnit のメモリリーク解消のため、 tearDown() メソッドでコールされる.
Tags
Return values
mixedinitializeMailCatcher()
MailCatcher を初期化する.
protected
initializeMailCatcher(
)
: mixed
このメソッドは主に setUp() メソッドでコールされる. MailCatcher が起動してない場合は, テストをスキップする. MailCatcher については \Eccube\Tests\Service\MailServiceTest のコメントを参照してください
Tags
Return values
mixedcheckMailCatcherStatus()
MailCatcher の起動状態をチェックする.
protected
checkMailCatcherStatus(
)
: mixed
MailCatcher が起動していない場合は, テストをスキップする.
Tags
Return values
mixedcleanUpMailCatcherMessages()
MailCatcher のメッセージをすべて削除する.
protected
cleanUpMailCatcherMessages(
)
: mixed
Tags
Return values
mixedgetMailCatcherMessages()
MailCatcher のメッセージをすべて取得する.
protected
getMailCatcherMessages(
)
: array
Tags
Return values
array —MailCatcher のメッセージの配列
getMailCatcherMessage()
MailCatcher のメッセージを ID を指定して取得する.
protected
getMailCatcherMessage(
$id :
int
)
: object
Parameters
- $id : int
メッセージの ID
Tags
Return values
object —MailCatcher のメッセージ
parseMailCatcherSource()
MailCatcher のメッセージソースをデコードする.
protected
parseMailCatcherSource(
$Message :
object
)
: string
Parameters
- $Message : object
MailCatcher のメッセージ
Tags
Return values
string —デコードされた eml 形式のソース
getMailCollector()
Get the MailCollector
protected
getMailCollector(
[ $sendRequest :
bool
= true ]
)
: MessageDataCollector
Parameters
- $sendRequest : bool = true
True to send requests internally.
Return values
MessageDataCollectorgenerateUrl()
Generates a URL from the given parameters.
protected
generateUrl(
$route :
string
[, $parameters :
array
= [] ]
[, $referenceType :
int
= UrlGeneratorInterface::ABSOLUTE_PATH ]
)
: string
Parameters
- $route : string
The name of the route
- $parameters : array = []
An array of parameters
- $referenceType : int = UrlGeneratorInterface::ABSOLUTE_PATH
The type of reference (one of the constants in UrlGeneratorInterface)
Tags
Return values
string —The generated URL
getCsrfToken()
Returns a CSRF token for the given ID.
protected
getCsrfToken(
$csrfTokenId :
string
)
: CsrfToken
If previously no token existed for the given ID. ATTENTION: Call this function before login.
Parameters
- $csrfTokenId : string
The token ID (e.g.
authenticate
,<FormTypeBlockPrefix>
)
Tags
Return values
CsrfToken —The CSRF token