function ImageToolkitUnitTest::testDesaturate in SimpleTest 7
Test the image_desaturate() function.
File
- tests/
image.test, line 183 - Unit tests for the Drupal Form API.
Class
- ImageToolkitUnitTest
- Test that the functions in image.inc correctly pass data to the toolkit.
Code
function testDesaturate() {
$this
->assertTrue(image_desaturate($this->image), t('Function returned the expected value.'));
$this
->assertToolkitOperationsCalled(array(
'desaturate',
));
// Check the parameters.
$calls = image_test_get_all_calls();
$this
->assertEqual(count($calls['desaturate'][0]), 1, t('Only the image was passed.'));
}