You are here

function FeedAPI_Node_Tests::feedapi_user in FeedAPI 5

Login with a user who has FeedAPI rights

3 calls to FeedAPI_Node_Tests::feedapi_user()
FeedAPI_Node_Tests::testFeedAPI_Node_Export_OPML in feedapi_node/tests/feedapi_node.module.test
Checks if the OPML export page is basically sane.
FeedAPI_Node_Tests::testFeedAPI_Node_Import_Form in feedapi_node/tests/feedapi_node.module.test
FeedAPI_Node_Tests::testFeedAPI_Node_Refresh_Feed in feedapi_node/tests/feedapi_node.module.test
Add a content-type, create a feed and refresh it. Check if everything seems ok Delete the feed Check if the rubbish is purged as well.

File

feedapi_node/tests/feedapi_node.module.test, line 18

Class

FeedAPI_Node_Tests
Class for testing feedapi_node. It also tests FeedAPI and SimplePie parsers.

Code

function feedapi_user() {
  $user = $this
    ->drupalCreateUserRolePerm(array(
    'administer feedapi',
    'advanced feedapi options',
    'administer nodes',
    "create " . $this->info->type . " content",
  ));
  $this
    ->drupalLoginUser($user);
}