hosting_server.test

Tests for hosting_server.module.

Classes

File

server/hosting_server.test
View source
  1. <?php
  2. /**
  3. * @file
  4. * Tests for hosting_server.module.
  5. */
  6. class HostingServerTestCase extends HostingTestCase {
  7. function testServer() {
  8. $web_user = $this->drupalCreateUser(array(
  9. // Drupal core
  10. 'access content',
  11. //'access all views',
  12. // Clients
  13. 'view server',
  14. 'create server',
  15. 'edit server',
  16. 'delete server',
  17. ));
  18. // Make the user part of the admin client.
  19. hosting_client_user_form_submit(array('hosting_client' => 1,), $web_user);
  20. $this->drupalLogin($web_user);
  21. $this->drupalGet('hosting/servers');
  22. }
  23. public static function getInfo() {
  24. return array(
  25. 'name' => 'Hosting Server',
  26. 'description' => 'Tests.',
  27. 'group' => 'Hosting',
  28. );
  29. }
  30. }