[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/tests/inc/ -> common_saveWikiText.test.php (summary)

(no description)

File Size: 687 lines (26 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

common_saveWikiText_test:: (8 methods):
  handle_write()
  checkChangeLogAfterNormalSave()
  checkChangeLogAfterExternalEdit()
  test_savesequence1()
  test_savesequence2()
  test_savesequence3()
  test_savesequence4()
  test_savesequence5()


Class: common_saveWikiText_test  - X-Ref

saveWikiText() stores files in pages/, attic/ and adds entries to changelog

handle_write(Doku_Event $event, $param)   X-Ref
No description

checkChangeLogAfterNormalSave(PageChangeLog $pagelog,$expectedRevs, &$expectedLastEntry, $expected2ndLastEntry = null )   X-Ref
assertions against changelog entries and attic after saveWikiText()


checkChangeLogAfterExternalEdit(PageChangeLog $pagelog,$expectedRevs, $expectedLastEntry, &$expectedCurrentEntry )   X-Ref
assertions against changelog entries and attic after external edit, create or deletion of page


test_savesequence1()   X-Ref
Execute a whole bunch of saves on the same page and check the results
TEST 1
1.1 create a page
1.2 save with same content should be ignored
1.3 update the page with new text
1.4 add a minor edit (unauthenticated, minor not allowable)
1.5 add a minor edit (authenticated)
1.6 delete
1.7 restore
1.8 external edit
1.9 edit and save on top of external edit


test_savesequence2()   X-Ref
Execute a whole bunch of saves on the same page and check the results
using $this->handle_write() in event IO_WIKIPAGE_WRITE
TEST 2 - create a page externally in 2.3, while external edit in Test 1.8
2.1 create a page
2.2 delete
2.3 externally create the page
2.4 edit and save on top of external edit
2.5 external edit
2.6 edit and save on top of external edit, again


test_savesequence3()   X-Ref
Execute a whole bunch of saves on the same page and check the results
TEST 3 - typical page life of bundled page such as wiki:syntax
3.1 externally create a page
3.2 external edit
3.3 edit and save on top of external edit
3.4 externally delete the page


test_savesequence4()   X-Ref
Execute a whole bunch of saves on the same page and check the results
TEST 4 - typical page life of bundled page such as wiki:syntax
4.1 externally create a page
4.2 edit and save
4.3 externally edit as a result of a file which has older timestamp than last revision


test_savesequence5()   X-Ref
Execute a whole bunch of saves on the same page and check the results
TEST 5 - page creation and deletion
5.1 create a page
5.2 external edit
5.3 edit and save on top of external edit
5.4 delete
5.5 create a page, second time
5.6 externally delete
5.7 create a page, third time