PHP Class Eccube\Tests\Plugin\Web\CommonHookPointTest

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

Protected Properties

Property Type Description
$event

Public Methods

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

Method Details

setUp() public method

public setUp ( )

testAppAfter() public method

public testAppAfter ( )

testAppAfterWithArgument() public method

testAppBefore() public method

public testAppBefore ( )

testAppBeforeRedirect() public method

testAppBeforeWithArgument() public method

testControllerHomepageAfter() public method

testControllerHomepageAfterWithArgument() public method

testControllerHomepageBefore() public method

testControllerHomepageBeforeRedirect() public method

testControllerHomepageBeforeWithArgument() public method

testControllerHomepageFinish() public method

testControllerHomepageFinishWithArgument() public method

Property Details

$event protected property

protected $event