mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
basic thumbUrl test.
This commit is contained in:
@@ -227,12 +227,26 @@ TMP;
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
public function testThumbUrl()
|
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()
|
public function testParseBBCodes()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user