1 <?php
2 /**
3  * @group plugin_imagecarousel
4  * @group plugins
5  */
6 class plugin_imagecarousel_parse_test extends DokuWikiTest {
7 
8     public function setup() {
9         $this->pluginsEnabled[] = 'imagecarousel';
10         parent::setup();
11     }
12 
13     public function test_syntax() {
14         saveWikiText('test:plugin_imagecarousel',
15             '<carousel infinite=true&slidesToShow=4&slidesToScroll=3&dots=true>'
16             .'  * {{:wiki:dokuwiki-128.png?direct|test}} Lorem Ipsum lorem ipsum'
17             .'</carousel>',
18             'setup for test');
19         $HTML = p_wiki_xhtml('test:plugin_imagecarousel');
20         $this->assertTrue(strpos($HTML, '<div class="slick') !== false, 'render class slick');
21         $this->assertTrue(strpos($HTML, '"slidesToShow":4') !== false, 'slidesToShow is 4');
22 
23     }
24 }
25