You are here

function ImageToolkitUnitTest::testGetAvailableToolkits in SimpleTest 7

Check that hook_image_toolkits() is called and only available toolkits are returned.

File

tests/image.test, line 84
Unit tests for the Drupal Form 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']), t('The working toolkit was returned.'));
  $this
    ->assertFalse(isset($toolkits['broken']), t('The toolkit marked unavailable was not returned'));
  $this
    ->assertToolkitOperationsCalled(array());
}