You are here

public function LinkitProfileUICRUDTestCase::testLoadProfile in Linkit 7.3

Load a profile that exists.

File

test/linkit_profile.test, line 133
Tests for Linkit module.

Class

LinkitProfileUICRUDTestCase
Tests Linkit profile UI CRUD.

Code

public function testLoadProfile() {

  // Create an user account so we can create a profile.
  $this->account = $this
    ->drupalCreateUser($this->admin_permissions);
  $this
    ->drupalLogin($this->account);

  // Create a profile that we will load.
  $this
    ->createProfile();

  // Load the saved profile.
  $loaded_profile = linkit_profile_load($this->_profile->name);
  $this
    ->assertTrue($loaded_profile, 'Profile was successfully loaded.');
}