protected function LinkFieldAttributesTest::createNodeTypeUser in Link 7
Create Node Type User.
7 calls to LinkFieldAttributesTest::createNodeTypeUser()
- LinkFieldAttributesTest::testFormatterHost in tests/
LinkFieldAttributesTest.test - Formatter Host.
- LinkFieldAttributesTest::testFormatterLabel in tests/
LinkFieldAttributesTest.test - Formatter Label.
- LinkFieldAttributesTest::testFormatterPlain in tests/
LinkFieldAttributesTest.test - Test the link_plain formatter and it's output.
- LinkFieldAttributesTest::testFormatterPlainTitle in tests/
LinkFieldAttributesTest.test - Formatter Plain Title.
- LinkFieldAttributesTest::testFormatterSeparate in tests/
LinkFieldAttributesTest.test - Formatter Separate.
File
- tests/
LinkFieldAttributesTest.test, line 193 - Field attributes test.
Class
- LinkFieldAttributesTest
- Field attributes test.
Code
protected function createNodeTypeUser($content_type_machine) {
$permission = 'create ' . $content_type_machine . ' content';
// Reset the permissions cache.
$this
->checkPermissions(array(
$permission,
), TRUE);
// Now that we have a new content type, create a user that has privileges
// on the content type.
$permissions = $this->permissions;
$permissions[$permission] = $permission;
$this->web_user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->web_user);
}