EditControllerWithMultipleTest
class EditControllerWithMultipleTest extends AbstractEditControllerTestCase
複数配送設定用 EditController のテストケース.
Constants
MAILCATCHER_URL |
MailCatcher の URL. |
Properties
protected | $actual | from EccubeTestCase | |
protected | $expected | from EccubeTestCase | |
protected | $client | from AbstractWebTestCase | |
protected | $Customer | ||
protected | $Order | ||
protected | $Product |
Methods
Applicaiton を生成しトランザクションを開始する.
Product オブジェクトを生成して返す.
Payment オプジェクトを生成して返す.
No description
No description
No description
No description
No description
No description
No description
管理画面から購入処理中で受注登録し, フロントを参照するテスト
受注編集時に、dtb_order.taxの値が正しく保存されているかどうかのテスト
複数配送用受注編集用フォーム作成.
Details
at line 41
setUp()
Applicaiton を生成しトランザクションを開始する.
in AbstractWebTestCase at line 45
tearDown()
トランザクションをロールバックする.
in EccubeTestCase at line 68
initializeDatabase()
データベースを初期化する.
データベースを初期化し、マイグレーションを行なう. 全てのデータが初期化されるため注意すること.
in EccubeTestCase at line 134
Generator
getFaker(string $locale = 'ja_JP')
Faker を生成する.
in EccubeTestCase at line 145
verify(string $message = '')
Expected と Actual を比較する.
in EccubeTestCase at line 156
Member
createMember($username = null)
Member オブジェクトを生成して返す.
in EccubeTestCase at line 167
Customer
createCustomer(string $email = null)
Customer オブジェクトを生成して返す.
in EccubeTestCase at line 179
CustomerAddress
createCustomerAddress(Customer $Customer, boolean $is_nonmember = false)
CustomerAddress を生成して返す.
in EccubeTestCase at line 190
Customer
createNonMember(string $email = null)
非会員の Customer オブジェクトを生成して返す.
in EccubeTestCase at line 202
Product
createProduct(string $product_name = null, integer $product_class_num = 3)
Product オブジェクトを生成して返す.
in EccubeTestCase at line 213
Order
createOrder(Customer $Customer)
Order オブジェクトを生成して返す.
in EccubeTestCase at line 231
Payment
createPayment(Delivery $Delivery, string $method, integer $charge, integer $rule_min, integer $rule_max = 999999999)
Payment オプジェクトを生成して返す.
in EccubeTestCase at line 244
deleteAllRows(array $tables)
テーブルのデータを全て削除する.
このメソッドは、参照制約の関係で、 Doctrine ORM ではデータ削除できない場合に使用する. 通常は、 EntityManager::remove() を使用して削除すること.
in EccubeTestCase at line 257
createApplication()
{@inheritdoc}
in EccubeTestCase at line 282
protected
cleanUpProperties()
PHPUnit_* インスタンスのプロパティを初期化する.
このメソッドは、PHPUnit のメモリリーク解消のため、 tearDown() メソッドでコールされる.
in EccubeTestCase at line 304
protected
initializeMailCatcher()
MailCatcher を初期化する.
このメソッドは主に setUp() メソッドでコールされる. MailCatcher が起動してない場合は, テストをスキップする. MailCatcher については \Eccube\Tests\Service\MailServiceTest のコメントを参照してください
in EccubeTestCase at line 325
protected
checkMailCatcherStatus()
MailCatcher の起動状態をチェックする.
MailCatcher が起動していない場合は, テストをスキップする.
in EccubeTestCase at line 346
protected
cleanUpMailCatcherMessages()
MailCatcher のメッセージをすべて削除する.
in EccubeTestCase at line 362
protected array
getMailCatcherMessages()
MailCatcher のメッセージをすべて取得する.
in EccubeTestCase at line 376
protected object
getMailCatcherMessage(integer $id)
MailCatcher のメッセージを ID を指定して取得する.
in EccubeTestCase at line 390
protected string
parseMailCatcherSource(object $Message)
MailCatcher のメッセージソースをデコードする.
in EccubeTestCase at line 398
protected
isSqliteInMemory()
in the case of sqlite in-memory database.
in AbstractAdminWebTestCase at line 42
logIn($user = null)
deprecated
deprecated
in AbstractWebTestCase at line 69
Client
loginTo(UserInterface $User)
User をログインさせてHttpKernel\Client を返す.
in AbstractEditControllerTestCase at line 26
array
createFormData(Customer $Customer, Product $Product = null)
受注編集用フォーム作成.
in AbstractEditControllerTestCase at line 137
array
createFormDataForEdit(Order $Order)
受注再編集用フォーム作成.
at line 53
testRoutingAdminOrderNew()
at line 59
testRoutingAdminOrderNewPost()
at line 77
testRoutingAdminOrderEdit()
at line 86
testRoutingAdminOrderEditPost()
at line 110
testSearchCustomer()
at line 131
testSearchCustomerById()
at line 153
testSearchProduct()
at line 176
testOrderProcessingToFrontConfirm()
管理画面から購入処理中で受注登録し, フロントを参照するテスト
at line 275
testOrderProcessingWithTax()
受注編集時に、dtb_order.taxの値が正しく保存されているかどうかのテスト
at line 332
array
createFormDataForMultiple(Customer $Customer, array $Shippings)
複数配送用受注編集用フォーム作成.
createFormData() との違いは、 $Shipping[N]['ShipmentItems'] がフォームに追加されている. OrderDetails は、 $Shippings[N]['ShipmentItems] から生成される.
at line 364
array
createShipping(array $ProductClasses)
複数配送用受注編集用フォーム作成.
引数に渡した商品規格のお届け商品明細が生成される.