pluginsEnabled[] = 'rowmove'; $this->pluginsEnabled[] = 'ajaxedit'; parent::setup(); } public function test_basic_syntax() { global $INFO; $INFO['id'] = 'test:plugin_rowmove:syntax'; $INFO['perm'] = AUTH_EDIT; saveWikiText('test:plugin_rowmove:syntax',"|row1||\n|row2||\n",'test'); $xhtml = p_wiki_xhtml('test:plugin_rowmove:syntax'); $doc = phpQuery::newDocument($xhtml); $selector = pq("span.rowmove",$doc); $this->assertTrue($selector->length === 2); $this->assertTrue(pq("img",$selector)->length === 4); } }