MailServiceTest
class MailServiceTest extends AbstractServiceTestCase
MailService test cases.
このテストは MailCatcher を使用します. 事前に MailCatcher をインストールし, 起動させておく必要があります.
インストール) $ gem install mailcatcher
起動) $ mailcatcher
MailCatcher については下記リンクを参考にしてください
Constants
MAILCATCHER_URL |
|
Properties
protected | $actual | from EccubeTestCase | |
protected | $expected | from EccubeTestCase | |
protected | $client | ||
protected | $Customer | ||
protected | $BaseInfo |
Methods
Applicaiton を生成しトランザクションを開始する.
トランザクションをロールバックする.
Product オブジェクトを生成して返す.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 34
setUp()
Applicaiton を生成しトランザクションを開始する.
at line 56
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() メソッドでコールされる.