Lines Matching +full:page +full:schema +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)
45 * @param string $schema
49 protected function checkField(Document $pq, $schema, $name, $value) argument
54 "Field $schema.$name not found"
58 $pq->find("input[name='struct_schema_data[$schema][$name]']")->attr('value'),
59 "Field $schema.$name has wrong value"
123 $page = 'test_edit_page_wo_schema';
126 $response = $request->get(['id' => $page, 'do' => 'edit'], '/doku.php');
135 $page = 'test_edit_page_with_schema';
137 $schema = 'schema2';
138 $assignment->addPattern($page, $schema);
141 $response = $request->get(['id' => $page, 'do' => 'edit'], '/doku.php');
155 $page = 'test_preview_page_invaliddata';
157 $schema = 'schema2';
158 $assignment->addPattern($page, $schema);
162 $schema => [
170 $response = $request->post(['id' => $page, 'do' => 'preview']);
188 $page = 'test_preview_page_validdata';
190 $schema = 'schema2';
191 $assignment->addPattern($page, $schema);
195 $schema => [
203 $response = $request->post(['id' => $page, 'do' => 'preview']);
220 $page = 'test_fail_saving_empty_page';
222 $schema = 'schema2';
223 $assignment->addPattern($page, $schema);
227 $schema => [
236 $response = $request->post(['id' => $page, 'do' => 'save'], '/doku.php');
239 $pagelog = new PageChangelog($page);
243 … $this->assertEquals($expected_errormsg, $actual_errormsg, "An empty page should not be saved.");
248 $page = 'test_fail_saveing_page_with_invaliddata';
250 $schema = 'schema2';
251 $assignment->addPattern($page, $schema);
256 $schema => [
266 $response = $request->post(['id' => $page, 'do' => 'save']);
275 $pagelog = new PageChangelog($page);
296 $page = 'test_save_page';
298 $schema = 'schema2';
299 $assignment->addPattern($page, $schema);
303 $schema => [
313 $request->post(['id' => $page, 'do' => 'save']);
315 $pagelog = new PageChangelog($page);
318 $schemaData = meta\AccessTable::getPageAccess($schema, $page, $revisions[0]);
339 $page = 'test_save_page_without_new_text';
341 $schema = 'schema2';
342 $assignment->addPattern($page, $schema);
348 $schema => [
358 $request->post(['id' => $page, 'do' => 'save']);
365 $schema => [
375 $request->post(['id' => $page, 'do' => 'save']);
378 $pagelog = new PageChangelog($page);
381 $schemaData = meta\AccessTable::getPageAccess($schema, $page, $revisions[0]);
402 $page = 'test_delete_page';
404 $schema = 'schema2';
405 $assignment->addPattern($page, $schema);
411 $schema => [
421 $request->post(['id' => $page, 'do' => 'save']);
428 $schema => [
437 $request->setPost('summary', 'delete page');
438 $request->post(['id' => $page, 'do' => 'save']);
441 $pagelog = new PageChangelog($page);
444 $schemaData = meta\AccessTable::getPageAccess($schema, $page, $revisions[0]);
454 $this->assertEquals('delete page', $revinfo['sum']);
465 $page = 'test_revert_page';
467 $schema = 'schema2';
468 $assignment->addPattern($page, $schema);
485 $schema => [
495 $request->post(['id' => $page, 'do' => 'save', 'sectok' => getSecurityToken()]);
502 $schema => [
511 $request->setPost('summary', 'delete page');
512 $request->post(['id' => $page, 'do' => 'save', 'sectok' => getSecurityToken()]);
517 $actpagelog = new PageChangelog($page);
522 $request->setPost('summary', 'revert page');
523 …$request->post(['id' => $page, 'do' => 'revert', 'rev' => $actrevinfo['date'], 'sectok' => getSecu…
526 $pagelog = new PageChangelog($page);
529 $schemaData = meta\AccessTable::getPageAccess($schema, $page, $revisions[0]);