AbstractWebTestCase
class AbstractWebTestCase extends EccubeTestCase
Properties
protected | $actual | from EccubeTestCase | |
protected | $expected | from EccubeTestCase | |
protected | $client | ||
static protected | $server |
Methods
setUp()
Applicaiton を生成しトランザクションを開始する.
createProduct(string $product_name = null, integer $product_class_num = 3)
Product オブジェクトを生成して返す.
from EccubeTestCase
logIn()
{@inheritdoc}
Details
at line 37
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 を生成する.
in EccubeTestCase at line 127
verify(string $message = '')
Expected と Actual を比較する.
in EccubeTestCase at line 138
Customer
createCustomer(string $email = null)
Customer オブジェクトを生成して返す.
in EccubeTestCase at line 167
Product
createProduct(string $product_name = null, integer $product_class_num = 3)
Product オブジェクトを生成して返す.
in EccubeTestCase at line 244
Order
createOrder(Customer $Customer)
Order オブジェクトを生成して返す.
in EccubeTestCase at line 315
deleteAllRows(array $tables)
テーブルのデータを全て削除する.
このメソッドは、参照制約の関係で、 Doctrine ORM ではデータ削除できない場合に使用する. 通常は、 EntityManager::remove() を使用して削除すること.
in EccubeTestCase at line 328
createApplication()
{@inheritdoc}
in EccubeTestCase at line 353
protected
cleanUpProperties()
PHPUnit_* インスタンスのプロパティを初期化する.
このメソッドは、PHPUnit のメモリリーク解消のため、 tearDown() メソッドでコールされる.
at line 48
logIn()
{@inheritdoc}