PluginServiceWithExceptionTest
class PluginServiceWithExceptionTest extends AbstractServiceTestCase
例外系の PluginService テストケース.
通常は EccubeTestCase によって、 begin/rollback されるため、実装コード内での rollback が検証できない。 このクラスは、 setUp()/tearDown() で begin/rollback しないようにし、 実装コード内での rollback を検証する.
Properties
protected | $actual | from EccubeTestCase | |
protected | $expected | from EccubeTestCase |
Methods
Applicaiton を生成しトランザクションを開始する.
トランザクションをロールバックする.
Product オブジェクトを生成して返す.
No description
Details
at line 27
setUp()
Applicaiton を生成しトランザクションを開始する.
at line 37
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() メソッドでコールされる.