public function ActivityWebTest::testUserActivityLoadObjects in Activity 7
Test that the node activity handler properly loads the user objects.
File
- tests/
activity_unit.test, line 131
Class
Code
public function testUserActivityLoadObjects() {
$handler = activity_load_handler('user_insert');
$handler->label = 'Test user update';
$account = $this
->drupalCreateUser();
$objects1 = $handler
->loadObjects($account->uid);
// Make sure loaded objects match what is expected.
$this
->assertEqual($account->uid, $objects1['user']->uid, t('Loaded up the correct user account'));
}