Skip to content
Snippets Groups Projects
Commit e80d6071 authored by Demian Katz's avatar Demian Katz
Browse files

Improved coverage.

parent d7eb146e
No related merge requests found
...@@ -69,6 +69,20 @@ class LoaderTest extends \VuFindTest\Unit\TestCase ...@@ -69,6 +69,20 @@ class LoaderTest extends \VuFindTest\Unit\TestCase
$this->assertEquals('368', strlen($loader->getImage())); $this->assertEquals('368', strlen($loader->getImage()));
} }
/**
* Test that requesting an image causes default data to load.
* (same as above test, but with assertions in different order to
* force appropriate loading).
*
* @return void
*/
public function testDefaultLoadingForImage()
{
$loader = $this->getLoader();
$this->assertEquals('368', strlen($loader->getImage()));
$this->assertEquals('image/gif', $loader->getContentType());
}
/** /**
* Get a loader object to test. * Get a loader object to test.
* *
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment