1<?php 2 3//this has to be set up to right path 4require_once DOKU_INC . 'lib/plugins/latexit/classes/Rowspan.php'; 5 6/** 7 * Rowspan tests for the latexit plugin 8 * 9 * @group plugin_latexit_classes 10 * @group plugin_latexit 11 * @group plugins 12 */ 13class rowspan_plugin_latexit_test extends DokuWikiTest { 14 15 /** 16 * These plugins will be loaded for testing. 17 * @var array 18 */ 19 protected $pluginsEnabled = array('latexit', 'mathjax', 'imagereference', 'zotero'); 20 21 /** 22 * Testing getRowspan and setRowspan methods. 23 */ 24 public function test_getRowspan() { 25 $r = new Rowspan(3, 2); 26 $this->assertEquals(3, $r->getRowspan()); 27 $r->setRowspan(5); 28 $this->assertEquals(5, $r->getRowspan()); 29 } 30 31 /** 32 * Testing getCellId and setCellId methods. 33 */ 34 public function test_getCellId() { 35 $r = new Rowspan(3, 2); 36 $this->assertEquals(2, $r->getCellId()); 37 $r->setCellId(4); 38 $this->assertEquals(4, $r->getCellId()); 39 } 40 41} 42