The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

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
$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.
*
......
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