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

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

공개 메소드들

메소드 설명
acceptLanguageTestData ( ) : array Provides the test data for the accept language header tests.
localeTestData ( ) : array Provides the test data for the locale tests.
testCreateWithLocales ( ) Tests the createWithLocales() method.
testInstantiation ( ) Tests the object instantiation.
testInvalidLocale ( ) Tests the onKernelRequest() method with an invalid locale.
testWithLanguageHeader ( string $locale, string $expected, array $available ) Tests the onKernelRequest() method with an accept language header.
testWithRequestAttribute ( string $locale, string $expected ) Tests the onKernelRequest() method with a request attribute.
testWithSessionValue ( string $locale, string $expected ) Tests the onKernelRequest() method with the session locale.
testWithoutContainer ( ) Tests the onKernelRequest() method without container.
testWithoutSession ( string $locale, string $expected ) Tests the onKernelRequest() method without session.

메소드 상세

acceptLanguageTestData() 공개 메소드

Provides the test data for the accept language header tests.
public acceptLanguageTestData ( ) : array
리턴 array

localeTestData() 공개 메소드

Provides the test data for the locale tests.
public localeTestData ( ) : array
리턴 array

testCreateWithLocales() 공개 메소드

Tests the createWithLocales() method.

testInstantiation() 공개 메소드

Tests the object instantiation.
public testInstantiation ( )

testInvalidLocale() 공개 메소드

Tests the onKernelRequest() method with an invalid locale.
public testInvalidLocale ( )

testWithLanguageHeader() 공개 메소드

Tests the onKernelRequest() method with an accept language header.
public testWithLanguageHeader ( string $locale, string $expected, array $available )
$locale string
$expected string
$available array

testWithRequestAttribute() 공개 메소드

Tests the onKernelRequest() method with a request attribute.
public testWithRequestAttribute ( string $locale, string $expected )
$locale string
$expected string

testWithSessionValue() 공개 메소드

Tests the onKernelRequest() method with the session locale.
public testWithSessionValue ( string $locale, string $expected )
$locale string
$expected string

testWithoutContainer() 공개 메소드

Tests the onKernelRequest() method without container.

testWithoutSession() 공개 메소드

Tests the onKernelRequest() method without session.
public testWithoutSession ( string $locale, string $expected )
$locale string
$expected string