function ImageToolkitUnitTest::testLoad
7.x image.test | ImageToolkitUnitTest::testLoad() |
Test the image_load() function.
File
- drupal-7.x/
modules/ simpletest/ tests/ image.test, line 101 - Tests for core image handling API.
Class
- ImageToolkitUnitTest
- Test that the functions in image.inc correctly pass data to the toolkit.
Code
function testLoad() {
$image = image_load($this->file, $this->toolkit);
$this->assertTrue(is_object($image), 'Returned an object.');
$this->assertEqual($this->toolkit, $image->toolkit, 'Image had toolkit set.');
$this->assertToolkitOperationsCalled(array('load', 'get_info'));
}