class CustomerRepositoryGetQueryBuilderBySearchDataTest extends EccubeTestCase

CustomerRepository test cases.

Properties

protected $actual from EccubeTestCase
protected $expected from EccubeTestCase
protected $Results
protected $searchData

Methods

setUp()

Applicaiton を生成しトランザクションを開始する.

tearDown()

トランザクションをロールバックする.

initializeDatabase()

データベースを初期化する.

Generator
getFaker(string $locale = 'ja_JP')

Faker を生成する.

verify(string $message = '')

Expected と Actual を比較する.

createCustomer(string $email = null)

Customer オブジェクトを生成して返す.

createProduct(string $product_name = null, integer $product_class_num = 3)

Product オブジェクトを生成して返す.

createOrder(Customer $Customer)

Order オブジェクトを生成して返す.

deleteAllRows(array $tables)

テーブルのデータを全て削除する.

createApplication()

{@inheritdoc}

cleanUpProperties()

PHPUnit_* インスタンスのプロパティを初期化する.

removeCustomer()

No description

scenario()

No description

testMultiWithId()

No description

testMultiWithIdNotFound()

No description

testMultiWithEmail()

No description

testMultiWithEmail2()

No description

testMultiWithName()

No description

testMultiWithNameHasSpaceEn()

No description

testMultiWithNameHasSpaceJa()

No description

testMultiWithKana()

No description

testPref()

No description

testSex()

No description

testBirthMonth()

No description

testBirthStart()

No description

testBirthStartWithOut()

No description

testBirthEnd()

No description

testBirthEndWithOut()

No description

testTel()

No description

testBuyTotalStart()

No description

testBuyTotalEnd()

No description

testBuyTimesStart()

No description

testBuyTimesEnd()

No description

testCreateDateStart()

No description

testCreateDateEnd()

No description

testUpdateDateStart()

No description

testUpdateDateEnd()

No description

testLastBuyStart()

No description

testLastBuyEnd()

No description

testStatus()

No description

testStatusWithNonActive()

No description

testBuyProductCode()

No description

Details

at line 27
setUp()

Applicaiton を生成しトランザクションを開始する.

in EccubeTestCase at line 55
tearDown()

トランザクションをロールバックする.

in EccubeTestCase at line 71
initializeDatabase()

データベースを初期化する.

データベースを初期化し、マイグレーションを行なう. 全てのデータが初期化されるため注意すること.

in EccubeTestCase at line 116
Generator getFaker(string $locale = 'ja_JP')

Faker を生成する.

Parameters

string $locale ロケールを指定する. デフォルト ja_JP

Return Value

Generator

in EccubeTestCase at line 127
verify(string $message = '')

Expected と Actual を比較する.

Parameters

string $message エラーメッセージ

in EccubeTestCase at line 138
Customer createCustomer(string $email = null)

Customer オブジェクトを生成して返す.

Parameters

string $email メールアドレス. null の場合は, ランダムなメールアドレスが生成される.

Return Value

Customer

in EccubeTestCase at line 167
Product createProduct(string $product_name = null, integer $product_class_num = 3)

Product オブジェクトを生成して返す.

Parameters

string $product_name 商品名. null の場合はランダムな文字列が生成される.
integer $product_class_num 商品規格の生成数

Return Value

Product

in EccubeTestCase at line 244
Order createOrder(Customer $Customer)

Order オブジェクトを生成して返す.

Parameters

Customer $Customer Customer インスタンス

Return Value

Order

in EccubeTestCase at line 315
deleteAllRows(array $tables)

テーブルのデータを全て削除する.

このメソッドは、参照制約の関係で、 Doctrine ORM ではデータ削除できない場合に使用する. 通常は、 EntityManager::remove() を使用して削除すること.

Parameters

array $tables 削除対象のテーブル名の配列

in EccubeTestCase at line 328
createApplication()

{@inheritdoc}

in EccubeTestCase at line 353
protected cleanUpProperties()

PHPUnit_* インスタンスのプロパティを初期化する.

このメソッドは、PHPUnit のメモリリーク解消のため、 tearDown() メソッドでコールされる.

at line 37
removeCustomer()

at line 51
scenario()

at line 58
testMultiWithId()

at line 72
testMultiWithIdNotFound()

at line 85
testMultiWithEmail()

at line 100
testMultiWithEmail2()

at line 113
testMultiWithName()

at line 132
testMultiWithNameHasSpaceEn()

at line 155
testMultiWithNameHasSpaceJa()

at line 178
testMultiWithKana()

at line 197
testMultiWithKanaHasWhiteSpaceEn()

at line 219
testMultiWithKanaHasWhiteSpaceJa()

at line 263
testPref()

at line 282
testSex()

at line 300
testBirthMonth()

at line 314
testBirthStart()

at line 331
testBirthStartWithOut()

at line 348
testBirthEnd()

at line 365
testBirthEndWithOut()

at line 382
testTel()

at line 401
testBuyTotalStart()

at line 436
testBuyTotalEnd()

at line 453
testBuyTimesStart()

at line 488
testBuyTimesEnd()

at line 506
testCreateDateStart()

at line 519
testCreateDateEnd()

at line 531
testUpdateDateStart()

at line 544
testUpdateDateEnd()

at line 556
testLastBuyStart()

at line 571
testLastBuyEnd()

at line 586
testStatus()

at line 604
testStatusWithNonActive()

at line 621
testBuyProductCode()