public function LinkitProfileUICRUDTestCase::testLoadProfilesNoProfilesExists in Linkit 7.3
Load all profiles when no profiles exists.
File
- test/
linkit_profile.test, line 150 - Tests for Linkit module.
Class
- LinkitProfileUICRUDTestCase
- Tests Linkit profile UI CRUD.
Code
public function testLoadProfilesNoProfilesExists() {
// We have to clear the static variables here as we have in the
// testLoadProfilesNoProfilesExists test function asked for profiles where
// there were no profiles.
drupal_static_reset('ctools_export_load_object');
drupal_static_reset('ctools_export_load_object_all');
// Load all profiles.
$loaded_profile = linkit_profile_load_all();
$this
->assertIdentical($loaded_profile, array(), 'Empty array is returned when loading all profiles and there are no profiles.');
}