PHP 클래스 Elgg\Forms\StickyFormsTest

상속: extends Elgg\TestCase
파일 보기 프로젝트 열기: elgg/elgg

공개 메소드들

메소드 설명
testIsStickyReturnsFalseForClearedStickyForms ( )
testIsStickyReturnsTrueForFormsMarkedAsSticky ( )
testMakeStickyFormStoresInputsInTheSession ( ) It's important to test that this information is actually stored in the session because that is a meaningful implementation detail that guarantees the "sticky" aspect. If it just stored inputs it in an array cache, the information would be lost at the end of the request (i.e. not sticky).

메소드 상세

testIsStickyReturnsFalseForClearedStickyForms() 공개 메소드

testIsStickyReturnsTrueForFormsMarkedAsSticky() 공개 메소드

testMakeStickyFormStoresInputsInTheSession() 공개 메소드

It's important to test that this information is actually stored in the session because that is a meaningful implementation detail that guarantees the "sticky" aspect. If it just stored inputs it in an array cache, the information would be lost at the end of the request (i.e. not sticky).