function GravatarUnitTest::testGravatar in Gravatar integration 7
Same name and namespace in other branches
- 6 gravatar.test \GravatarUnitTest::testGravatar()
File
- ./
gravatar.test, line 27 - Tests for the Gravatar module.
Class
- GravatarUnitTest
- Test basic functionality.
Code
function testGravatar() {
$variables = array();
$images = $this
->drupalGetTestFiles('image');
$user = $this
->drupalCreateUser();
$user->picture = $images[0];
$variables['account'] = $user;
$gravatar = gravatar_preprocess_user_picture($variables);
$variables['account'] = $this
->drupalCreateNode();
$gravatar = gravatar_preprocess_user_picture($variables);
//$variables['account'] = comment_save()
}