aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/Thumb/EpubthumbTest.php
blob: 5dabaf359ee875547c9c25570d723329879bcadf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/*
 * SPDX-FileCopyrightText: 2024 Hubzilla Community
 * SPDX-FileContributor: Harald Eilertsen
 *
 * SPDX-License-Identifier: MIT
 */

namespace Zotlabs\Tests\Unit\Thumbs;

use Zotlabs\Thumbs\Epubthumb;
use Zotlabs\Tests\Unit\UnitTestCase;

class EpubthumbTest extends UnitTestCase {
	function testEpubThumbMatch(): void {
		$thumbnailer = new Epubthumb();

		$this->assertTrue($thumbnailer->Match('application/epub+zip'));
		$this->assertFalse($thumbnailer->Match('application/zip'));
	}
}