Lines Matching full:page
17 * Test basic page indexing via addPage
26 // page should be in the entity index
27 $pageIndex = new FileIndex('page');
29 $this->assertNotEmpty($result, 'testpage not found in page.idx');
43 // page entity persists in page.idx but data is cleared
44 $pageIndex = new FileIndex('page');
46 $this->assertNotEmpty($result, 'delpage should persist in page.idx');
56 saveWikiText('old_name', 'Old page content words.', 'Test initialization');
62 $pageIndex = new FileIndex('page');
63 …$this->assertNotEmpty($pageIndex->search('/^new_name$/'), 'new_name not found in page.idx after re…
64 …$this->assertEmpty($pageIndex->search('/^old_name$/'), 'old_name should be gone from page.idx afte…
68 * renamePage must preserve the renamed page's outgoing references
70 * The rename only changes the page's name in the index, not its content, so all of
72 * must survive under the new name. This is what allows a page renamed early during a
74 * It must work even though the destination page is not on disk yet at rename time
84 saveWikiText('refsource', '[[target:page]]', 'Test initialization');
89 // sanity: the source page references target:page
90 $value = 'target:page';
93 // rename the source page WITHOUT writing the destination to disk first,
94 // mimicking how the move plugin calls renamePage before saving the new page
97 // the outgoing reference must now belong to the renamed page
98 $value = 'target:page';
102 'rename lost the outgoing reference of the renamed page'
109 * The renamed page must take over the destination name (keeping its own data) while the
111 * name resolves only to the renamed entity and does not leak as a phantom page.
149 $this->assertFileExists($conf['indexdir'] . '/page.idx');
153 $this->assertFileDoesNotExist($conf['indexdir'] . '/page.idx');
174 // a brand-new page has no .indexed tag yet, so it always needs indexing
184 * addPage returns true when it indexed the page and false when there was nothing to do
201 * deletePage returns true when it removed the page and false when there was nothing to do
208 …alse($indexer->deletePage('retdel'), 'deletePage should report nothing to do for an unknown page');
219 * renamePage returns true when it renamed the page and false for the no-op cases
228 // old page not in the index: nothing to do
229 …mePage('retrename', 'retrenamed'), 'renamePage should report nothing to do for an unindexed page');
249 // second call detects the page is already up to date