1 image.test | ImageToolkitUnitTest::testGetAvailableToolkits() |
Check that hook_image_toolkits() is called and only available toolkits are returned.
File
- core/
modules/ simpletest/ tests/ image.test, line 82 - Tests for core image handling API.
Class
- ImageToolkitUnitTest
- Test that the functions in image.inc correctly pass data to the toolkit.
Code
function testGetAvailableToolkits() {
$toolkits = image_get_available_toolkits();
$this->assertTrue(isset($toolkits['test']), 'The working toolkit was returned.');
$this->assertFalse(isset($toolkits['broken']), 'The toolkit marked unavailable was not returned');
$this->assertToolkitOperationsCalled(array());
}