You are here

function HostingServerTestCase::testServer in Hosting 7.3

Same name and namespace in other branches
  1. 7.4 server/hosting_server.test \HostingServerTestCase::testServer()

File

server/hosting_server.test, line 11
Tests for hosting_server.module.

Class

HostingServerTestCase
@file Tests for hosting_server.module.

Code

function testServer() {
  $web_user = $this
    ->drupalCreateUser(array(
    // Drupal core
    'access content',
    //'access all views',

    // Clients
    'view server',
    'create server',
    'edit server',
    'delete server',
  ));

  // Make the user part of the admin client.
  hosting_client_user_form_submit(array(
    'hosting_client' => 1,
  ), $web_user);
  $this
    ->drupalLogin($web_user);
  $this
    ->drupalGet('hosting/servers');
}