PHP 클래스 Contao\CoreBundle\Test\EventListener\ToggleViewListenerTest

파일 보기 프로젝트 열기: contao/core-bundle

공개 메소드들

메소드 설명
setUpBeforeClass ( )
testCookiePath ( ) Tests the cookie path.
testDesktopView ( ) Tests that there is a repsonse with a correct cookie for the desktop view.
testInstantiation ( ) Tests the object instantiation.
testInvalidView ( ) Tests that there is a repsonse with a correct cookie for an invalid view.
testMobileView ( ) Tests that there is a repsonse with a correct cookie for the mobile view.
testNoView ( ) Tests that there is no repsonse if there are no query parameters.
testNotInFrontend ( ) Tests that there is no repsonse if the scope is not "frontend".
testWithoutContainer ( ) Tests that there is no response if there is no container.

보호된 메소드들

메소드 설명
setUp ( )

비공개 메소드들

메소드 설명
assertCookieValue ( Response $response, string $expectedValue ) Checks if a cookie exists and has the correct value.
getCookie ( Response $response ) : Cookie | null Finds the TL_VIEW cookie in a response.

메소드 상세

setUp() 보호된 메소드

protected setUp ( )

setUpBeforeClass() 공개 정적인 메소드

public static setUpBeforeClass ( )

testCookiePath() 공개 메소드

Tests the cookie path.
public testCookiePath ( )

testDesktopView() 공개 메소드

Tests that there is a repsonse with a correct cookie for the desktop view.
public testDesktopView ( )

testInstantiation() 공개 메소드

Tests the object instantiation.
public testInstantiation ( )

testInvalidView() 공개 메소드

Tests that there is a repsonse with a correct cookie for an invalid view.
public testInvalidView ( )

testMobileView() 공개 메소드

Tests that there is a repsonse with a correct cookie for the mobile view.
public testMobileView ( )

testNoView() 공개 메소드

Tests that there is no repsonse if there are no query parameters.
public testNoView ( )

testNotInFrontend() 공개 메소드

Tests that there is no repsonse if the scope is not "frontend".
public testNotInFrontend ( )

testWithoutContainer() 공개 메소드

Tests that there is no response if there is no container.