Example #1
0
 public function testGetPreviewType()
 {
     $helper = new File($this->container);
     $this->assertEquals('text', $helper->getPreviewType('test.txt'));
     $this->assertEquals('markdown', $helper->getPreviewType('test.markdown'));
     $this->assertEquals('md', $helper->getPreviewType('test.md'));
     $this->assertEquals(null, $helper->getPreviewType('test.doc'));
 }