xref: /dokuwiki/lib/plugins/extension/_test/ExtensionTest.php (revision cf2dcf1b9ac1f331d4667a6c82d326f1a3e5d4c7)
1*cf2dcf1bSAndreas Gohr<?php
2*cf2dcf1bSAndreas Gohr
3*cf2dcf1bSAndreas Gohrnamespace dokuwiki\plugin\extension\test;
4*cf2dcf1bSAndreas Gohr
5*cf2dcf1bSAndreas Gohruse dokuwiki\plugin\extension\Extension;
6*cf2dcf1bSAndreas Gohruse DokuWikiTest;
7*cf2dcf1bSAndreas Gohr
8*cf2dcf1bSAndreas Gohr/**
9*cf2dcf1bSAndreas Gohr * Tests for the extension plugin
10*cf2dcf1bSAndreas Gohr *
11*cf2dcf1bSAndreas Gohr * @group plugin_extension
12*cf2dcf1bSAndreas Gohr * @group plugins
13*cf2dcf1bSAndreas Gohr */
14*cf2dcf1bSAndreas Gohrclass ExtensionTest extends DokuWikiTest
15*cf2dcf1bSAndreas Gohr{
16*cf2dcf1bSAndreas Gohr
17*cf2dcf1bSAndreas Gohr    public function testSomething()
18*cf2dcf1bSAndreas Gohr    {
19*cf2dcf1bSAndreas Gohr        $extension = Extension::createFromDirectory(__DIR__.'/../');
20*cf2dcf1bSAndreas Gohr
21*cf2dcf1bSAndreas Gohr        $this->assertFalse($extension->isTemplate());
22*cf2dcf1bSAndreas Gohr        $this->assertEquals('extension', $extension->getBase());
23*cf2dcf1bSAndreas Gohr    }
24*cf2dcf1bSAndreas Gohr}
25