PHP Class Eccube\Tests\Plugin\Web\CommonHookPointTest

CommonHookPointプラグインをロードし、WebTestで画面を巡回させる フックポイントごとにテストするため、本体のプラグインロード処理を使わず、addListenerで直接イベントクラス登を録している CommonHookPointプラグインの各メソッドは、自身のフックポイント名または、引数で渡されるeventオブジェクトのクラス名をechoしている テストケース側では、出力された内容をexpectOutputStringメソッドで確認し、フックポイントの呼び出しが行われているかを検証する また、イベントオブジェクトを利用してリダイレクトできるかどうかも検証する
Inheritance: extends Eccube\Tests\EccubeTestCase
Afficher le fichier Open project: ec-cube/ec-cube

Protected Properties

Свойство Type Description
$event

Méthodes publiques

Méthode Description
setUp ( )
testAppAfter ( )
testAppAfterWithArgument ( )
testAppBefore ( )
testAppBeforeRedirect ( )
testAppBeforeWithArgument ( )
testControllerHomepageAfter ( )
testControllerHomepageAfterWithArgument ( )
testControllerHomepageBefore ( )
testControllerHomepageBeforeRedirect ( )
testControllerHomepageBeforeWithArgument ( )
testControllerHomepageFinish ( )
testControllerHomepageFinishWithArgument ( )

Method Details

setUp() public méthode

public setUp ( )

testAppAfter() public méthode

public testAppAfter ( )

testAppAfterWithArgument() public méthode

testAppBefore() public méthode

public testAppBefore ( )

testAppBeforeRedirect() public méthode

testAppBeforeWithArgument() public méthode

testControllerHomepageAfter() public méthode

testControllerHomepageAfterWithArgument() public méthode

testControllerHomepageBefore() public méthode

testControllerHomepageBeforeRedirect() public méthode

testControllerHomepageBeforeWithArgument() public méthode

testControllerHomepageFinish() public méthode

testControllerHomepageFinishWithArgument() public méthode

Property Details

$event protected_oe property

protected $event