1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

basic thumbUrl test.

This commit is contained in:
Cameron
2018-07-28 09:30:37 -07:00
parent 7f18e9ddb3
commit 08852f1d61

View File

@@ -227,12 +227,26 @@ TMP;
{
}
*/
public function testThumbUrl()
{
$urls = array(
array('path' => '{e_PLUGIN}gallery/images/butterfly.jpg', 'expected'=>'/thumb.php?src=e_PLUGIN%2Fgallery%2Fimages%2Fbutterfly.jpg&w=300&h=200'),
array('path' => '{e_PLUGIN}dummy/Freesample.svg', 'expected'=>'/e107_plugins/dummy/Freesample.svg'),
);
foreach($urls as $val)
{
$actual = $this->tp->thumbUrl($val['path'], array('w'=>300, 'h'=>200));
$this->assertContains($val['expected'], $actual);
//echo $$actual."\n\n";
}
}
/*
public function testParseBBCodes()
{