Skip to content

Commit 1b2cc5f

Browse files
committed
added test for files without extension
1 parent 63a27f5 commit 1b2cc5f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

tests/ConverterTest.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,20 @@ public function canGenerateThumbnail()
4444
public function canGeneratePdfVersion()
4545
{
4646
Converter::file($this->getTestFile('Test.odt'))
47-
->save('MyTest.pdf');
47+
->save($this->getTestFileDirectory() . '/MyTest.pdf');
4848

49-
$this->assertFileExists($this->getTestFileDirectory() . '/Test.jpg');
49+
$this->assertFileExists($this->getTestFileDirectory() . '/MyTest.pdf');
50+
}
51+
52+
/**
53+
* @test
54+
*/
55+
public function canGenerateThumbnailOfFileWithoutExtension()
56+
{
57+
Converter::file($this->getTestFile('Test'), 'odt')
58+
->save($this->getTestFileDirectory() . '/MyTest-2.pdf');
59+
60+
$this->assertFileExists($this->getTestFileDirectory() . '/MyTest-2.pdf');
5061
}
5162

5263
/**

tests/testfiles/Test

9.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)