示例#1
0
	public function testGetMimetypeIconURL() {
		$file1 = new \Core\Filestore\Backends\FileRemote($this->_testfile);
		$file2 = new \Core\Filestore\Backends\FileRemote($this->_testimage);

		$this->assertContains('text-plain', $file1->getMimetypeIconURL());
		$this->assertStringStartsWith(ROOT_URL, $file1->getMimetypeIconURL());

		$this->assertContains('image-png', $file2->getMimetypeIconURL());
		$this->assertStringStartsWith(ROOT_URL, $file2->getMimetypeIconURL());
	}