You are here

function GravatarUnitTest::testGravatar in Gravatar integration 6

Same name and namespace in other branches
  1. 7 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()
}