StickyForms.php 735 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Elgg\Forms;
  3. use PHPUnit_Framework_TestCase as TestCase;
  4. class StickyFormsTest extends TestCase {
  5. public function testIsStickyReturnsTrueForFormsMarkedAsSticky() {
  6. $this->markTestIncomplete();
  7. }
  8. public function testIsStickyReturnsFalseForClearedStickyForms() {
  9. $this->markTestIncomplete();
  10. }
  11. /**
  12. * It's important to test that this information is actually stored in the
  13. * session because that is a meaningful implementation detail that guarantees
  14. * the "sticky" aspect. If it just stored inputs it in an array cache,
  15. * the information would be lost at the end of the request (i.e. not sticky).
  16. */
  17. public function testMakeStickyFormStoresInputsInTheSession() {
  18. $this->markTestIncomplete();
  19. }
  20. }