1<?php 2/** 3 * @group plugin_rowmove 4 * @group plugins 5 */ 6class plugin_rowmove_syntax_test extends DokuWikiTest { 7 8 public function setup() { 9 $this->pluginsEnabled[] = 'rowmove'; 10 $this->pluginsEnabled[] = 'ajaxedit'; 11 parent::setup(); 12 } 13 14 15 public function test_basic_syntax() { 16 global $INFO; 17 $INFO['id'] = 'test:plugin_rowmove:syntax'; 18 $INFO['perm'] = AUTH_EDIT; 19 saveWikiText('test:plugin_rowmove:syntax',"|row1|<rowmove>|\n|row2|<rowmove>|\n",'test'); 20 21 $xhtml = p_wiki_xhtml('test:plugin_rowmove:syntax'); 22 $doc = phpQuery::newDocument($xhtml); 23 24 $selector = pq("span.rowmove",$doc); 25 $this->assertTrue($selector->length === 2); 26 $this->assertTrue(pq("img",$selector)->length === 4); 27 } 28 29 30} 31