PHP Класс Elgg\Forms\StickyFormsTest

Наследование: extends Elgg\TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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).