ShoppingControllerTest
class ShoppingControllerTest extends AbstractWebTestCase
Constants
MAILCATCHER_URL |
MailCatcher の URL. |
Properties
protected | $actual | from EccubeTestCase | |
protected | $expected | from EccubeTestCase | |
protected | $client | from AbstractWebTestCase | |
static protected | $server | from AbstractWebTestCase |
Methods
Applicaiton を生成しトランザクションを開始する.
トランザクションをロールバックする.
Product オブジェクトを生成して返す.
Payment オプジェクトを生成して返す.
No description
No description
No description
No description
カート→購入確認画面→完了画面
購入確認画面→お届け先設定(未入力)
購入確認画面→お届け先設定
購入確認画面→お届け先設定(入力エラー)
購入確認画面→支払い方法選択
購入確認画面→支払い方法選択(エラー)
購入確認画面→お届け先の設定
購入確認画面→お届け先の設定→お届け先一覧
購入確認画面→お届け先の設定→お届け先追加→購入完了
No description
No description
No description
No description
No description
Details
at line 30
setUp()
Applicaiton を生成しトランザクションを開始する.
at line 36
tearDown()
トランザクションをロールバックする.
in EccubeTestCase at line 78
initializeDatabase()
データベースを初期化する.
データベースを初期化し、マイグレーションを行なう. 全てのデータが初期化されるため注意すること.
in EccubeTestCase at line 123
Generator
getFaker(string $locale = 'ja_JP')
Faker を生成する.
in EccubeTestCase at line 134
verify(string $message = '')
Expected と Actual を比較する.
in EccubeTestCase at line 145
Customer
createCustomer(string $email = null)
Customer オブジェクトを生成して返す.
in EccubeTestCase at line 184
Customer
createNonMember(string $email = null)
非会員の Customer オブジェクトを生成して返す.
in EccubeTestCase at line 226
Product
createProduct(string $product_name = null, integer $product_class_num = 3)
Product オブジェクトを生成して返す.
in EccubeTestCase at line 303
Order
createOrder(Customer $Customer)
Order オブジェクトを生成して返す.
in EccubeTestCase at line 375
Payment
createPayment(Delivery $Delivery, string $method, integer $charge, integer $rule_min, integer $rule_max = 999999999)
Payment オプジェクトを生成して返す.
in EccubeTestCase at line 410
deleteAllRows(array $tables)
テーブルのデータを全て削除する.
このメソッドは、参照制約の関係で、 Doctrine ORM ではデータ削除できない場合に使用する. 通常は、 EntityManager::remove() を使用して削除すること.
in EccubeTestCase at line 423
createApplication()
{@inheritdoc}
in EccubeTestCase at line 448
protected
cleanUpProperties()
PHPUnit_* インスタンスのプロパティを初期化する.
このメソッドは、PHPUnit のメモリリーク解消のため、 tearDown() メソッドでコールされる.
in EccubeTestCase at line 469
protected
initializeMailCatcher()
MailCatcher を初期化する.
このメソッドは主に setUp() メソッドでコールされる. MailCatcher が起動してない場合は, テストをスキップする. MailCatcher については \Eccube\Tests\Service\MailServiceTest のコメントを参照してください
in EccubeTestCase at line 490
protected
checkMailCatcherStatus()
MailCatcher の起動状態をチェックする.
MailCatcher が起動していない場合は, テストをスキップする.
in EccubeTestCase at line 511
protected
cleanUpMailCatcherMessages()
MailCatcher のメッセージをすべて削除する.
in EccubeTestCase at line 527
protected array
getMailCatcherMessages()
MailCatcher のメッセージをすべて取得する.
in EccubeTestCase at line 541
protected object
getMailCatcherMessage(integer $id)
MailCatcher のメッセージを ID を指定して取得する.
in EccubeTestCase at line 555
protected string
parseMailCatcherSource(object $Message)
MailCatcher のメッセージソースをデコードする.
in AbstractWebTestCase at line 53
logIn($user = null)
{@inheritdoc}
at line 42
testRoutingShoppingLogin()
at line 49
testShoppingIndexWithCartUnlock()
at line 59
testComplete()
at line 70
testShoppingError()
at line 80
testCompleteWithLogin()
カート→購入確認画面→完了画面
at line 126
testDeliveryWithNotInput()
購入確認画面→お届け先設定(未入力)
at line 149
testDeliveryWithPost()
購入確認画面→お届け先設定
at line 187
testDeliveryWithError()
購入確認画面→お届け先設定(入力エラー)
at line 227
testPaymentWithPost()
購入確認画面→支払い方法選択
at line 265
testPaymentWithError()
購入確認画面→支払い方法選択(エラー)
at line 304
testShippingChangeWithPost()
購入確認画面→お届け先の設定
at line 326
testShippingShipping()
購入確認画面→お届け先の設定→お届け先一覧
at line 357
testShippingShippingPost()
購入確認画面→お届け先の設定→お届け先追加→購入完了