Index: CHANGELOG.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/autoassignrole/CHANGELOG.txt,v
retrieving revision 1.12
diff -u -p -r1.12 CHANGELOG.txt
--- CHANGELOG.txt	14 Nov 2010 16:44:51 -0000	1.12
+++ CHANGELOG.txt	14 Nov 2010 17:43:22 -0000
@@ -2,6 +2,7 @@
 
 autoassignrole 7.0, xxxx-xx-xx (development version)
 ------------------------
+- [#971472] Split up Simpletests to match main functional areas.
 - [#945016] Administrator sets the user role field title.
 - [#945024] Administrator set roles description exposed when end user selects
   roles.
Index: autoassignrole.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/autoassignrole/autoassignrole.test,v
retrieving revision 1.12
diff -u -p -r1.12 autoassignrole.test
--- autoassignrole.test	14 Nov 2010 16:44:51 -0000	1.12
+++ autoassignrole.test	14 Nov 2010 17:43:23 -0000
@@ -9,13 +9,13 @@
 /**
  * Extend the DrupalWebTestCase.
  */
-class AutoassignroleAdminSettingsTestCase extends DrupalWebTestCase {
+class AutoassignroleAdminAutoTestCase extends DrupalWebTestCase {
   protected $admin_user;
 
   public static function getInfo() {
     return array(
-      'name' => 'Admin Settings',
-      'description' => 'Tests the administrative setting for auto assign role',
+      'name' => 'Admin auto',
+      'description' => 'Tests the administrative setting for auto assign role automatic assignment',
       'group' => 'Auto assign role',
     );
   }
@@ -34,6 +34,32 @@ class AutoassignroleAdminSettingsTestCas
   }
 
   /**
+   * Validate that the block for this functionality exists on
+   * admin/config.
+   */
+  function testAutoConfigBlock() {
+    // Create a new user who can access the administration settings
+    $this->drupalLogin($this->admin_user);
+
+    // Check that the user can see a link to the auto settings.
+    $this->drupalGet('admin/config');
+    $this->assertLink('Auto role assignment', 0, 'Auto role assignment link exists on admin/config');
+  }
+
+  /**
+   * Validate that the block for this functionality exists on
+   * admin/config/autoassignrole.
+   */
+  function testAutoConfigAarBlock() {
+    // Create a new user who can access the administration settings
+    $this->drupalLogin($this->admin_user);
+
+    // Check that the user can see a link to the auto settings.
+    $this->drupalGet('admin/config/autoassignrole');
+    $this->assertLink('Auto role assignment', 0, 'Auto role assignment link exists on admin/config');
+  }
+
+  /**
    * Test admin setting functionality for autoassignrole_auto_active.
    * @see http://drupal.org/node/937468
    */
@@ -160,6 +186,60 @@ class AutoassignroleAdminSettingsTestCas
       $this->assertEqual(TRUE, array_key_exists($rid, $roles), 'Verifying that role (rid:' . $rid . ') was activated.');
     }
   }
+}
+
+/**
+ * Extend the DrupalWebTestCase.
+ */
+class AutoassignroleAdminUserTestCase extends DrupalWebTestCase {
+  protected $admin_user;
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Admin user',
+      'description' => 'Tests the administrative setting for auto assign role user selection',
+      'group' => 'Auto assign role',
+    );
+  }
+
+  function setUp() {
+    parent::setUp('autoassignrole');
+    $this->admin_user = $this->drupalCreateUser(array(
+      'administer autoassignrole',
+      'access administration pages',
+    ));
+    $permissions = array('access content');
+    $this->drupalCreateRole($permissions);
+
+    $this->roles = user_roles(TRUE);
+    unset($this->roles[DRUPAL_AUTHENTICATED_RID]);
+  }
+
+  /**
+   * Validate that the block for this functionality exists on
+   * admin/config.
+   */
+  function testAutoConfigBlock() {
+    // Create a new user who can access the administration settings
+    $this->drupalLogin($this->admin_user);
+
+    // Check that the user can see a link to the auto settings.
+    $this->drupalGet('admin/config');
+    $this->assertLink('Allow user to choose', 0, 'Allow user to choose link exists on admin/config');
+  }
+
+  /**
+   * Validate that the block for this functionality exists on
+   * admin/config/autoassignrole.
+   */
+  function testAutoConfigAarBlock() {
+    // Create a new user who can access the administration settings
+    $this->drupalLogin($this->admin_user);
+
+    // Check that the user can see a link to the auto settings.
+    $this->drupalGet('admin/config/autoassignrole');
+    $this->assertLink('Allow user to choose', 0, 'Allow user to choose link exists on admin/config/autoassignrole');
+  }
 
   /**
    * Test admin setting functionality for autoassignrole_user_active.
