Index: pageroute.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pageroute/Attic/pageroute.test,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 pageroute.test
--- pageroute.test	17 Aug 2009 11:58:31 -0000	1.1.2.1
+++ pageroute.test	26 Aug 2009 14:09:11 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: pageroute.test,v 1.1.2.1 2009/08/17 11:58:31 fago Exp $
+// $Id$
 /**
  * @file
  * Pageroute Simpletest test cases
@@ -38,7 +38,6 @@ abstract class PagerouteTestCase extends
  * PageRoutePageTypesTestCase tests the standard core page types from Pageroute.
  */
 class PageRoutePageTypesTestCase extends PagerouteTestCase {
-  
   protected $routeId;
 
   public static function getInfo() {
@@ -54,14 +53,14 @@ class PageRoutePageTypesTestCase extends
     $route1 = "array (
       'options' =>
       array (
-        'tabs' => '2',
+        'tabs' => '1',
         'access' =>
         array (
           'allowed_roles' =>
           array (
-            1 => 1,
             2 => 2,
-            3 => 3,
+            1 => 0,
+            3 => 0,
           ),
         ),
         'redirect_path' => '',
@@ -74,7 +73,7 @@ class PageRoutePageTypesTestCase extends
           'name' => 'p1',
           'module' => 'pageroute',
           'type' => 'view',
-          'title' => 'Page 1 - Simple Node',
+          'title' => 'Page 1 - View node',
           'options' =>
           array (
             'activated' => 1,
@@ -91,10 +90,11 @@ class PageRoutePageTypesTestCase extends
           'name' => 'p2',
           'module' => 'pageroute',
           'type' => 'useredit',
-          'title' => 'Page 2 - Edit User',
+          'title' => 'Page 2 - Edit user',
           'options' =>
           array (
             'activated' => 1,
+            'no_tab' => 0,
             'forward' => 'Forward',
             'back' => 'Back',
             'cancel' => '',
@@ -107,7 +107,7 @@ class PageRoutePageTypesTestCase extends
           'name' => 'p3',
           'module' => 'pageroute',
           'type' => 'edit',
-          'title' => 'Page 3 - Node Editing',
+          'title' => 'Page 3 - Edit node',
           'options' =>
           array (
             'activated' => 1,
@@ -116,7 +116,7 @@ class PageRoutePageTypesTestCase extends
             'back' => 'Back',
             'cancel' => '',
             'content-type' => 'page',
-            'preview' => 1,
+            'preview' => 0,
             'submit' => 1,
             'nodelete' => 1,
           ),
@@ -127,7 +127,7 @@ class PageRoutePageTypesTestCase extends
           'name' => 'p4',
           'module' => 'pageroute',
           'type' => 'add',
-          'title' => 'Page 4 - Node adding',
+          'title' => 'Page 4 - Add Node',
           'options' =>
           array (
             'activated' => 1,
@@ -141,47 +141,6 @@ class PageRoutePageTypesTestCase extends
           ),
           'weight' => '-10',
         ),
-        4 =>
-        array (
-          'name' => 'p5',
-          'module' => 'pageroute',
-          'type' => 'manage',
-          'title' => 'Page 5 - Node Managment',
-          'options' =>
-          array (
-            'activated' => 1,
-            'no_tab' => 0,
-            'forward' => 'Forward',
-            'back' => 'Back',
-            'cancel' => '',
-            'content-type' => 'page',
-            'add_button' => 'Add',
-            'empty' =>
-            array (
-              'force_add' => '0',
-              'cancel' => 'Cancel',
-              'add_button' => 'Add',
-            ),
-            'add' =>
-            array (
-              'forward' => 'Forward',
-              'back' => 'Back',
-              'cancel' => 'Cancel',
-              'preview' => 0,
-              'submit' => 1,
-            ),
-            'edit' =>
-            array (
-              'forward' => 'Forward',
-              'back' => 'Back',
-              'cancel' => 'Cancel',
-              'preview' => 0,
-              'submit' => 1,
-              'nodelete' => 1,
-            ),
-          ),
-          'weight' => '-10',
-        ),
       ),
       'pageIndex' =>
       array (
@@ -189,7 +148,6 @@ class PageRoutePageTypesTestCase extends
         'p2' => 1,
         'p3' => 2,
         'p4' => 3,
-        'p5' => 4,
       ),
       'pageAccess' =>
       array (
@@ -211,6 +169,7 @@ class PageRoutePageTypesTestCase extends
     $this->drupalGet('pageroute1/p1//');
     $this->assertText('Page 1');
     $this->drupalPost('pageroute1/p1//', NULL, 'Forward');
+    file_put_contents("/home/sebastian/output/output.html", $this->drupalGetContent());
     $this->assertText('Page 2');
   }
 
@@ -231,11 +190,6 @@ class PageRoutePageTypesTestCase extends
     $this->assertText('Page 4');
   }
 
-  function testingNodeManagment() {
-    $this->drupalGet('pageroute1/p5//');
-    $this->assertText('Page 5');
-  }
-
   function testingPage1Edit() {
     $this->drupalGet('admin/build/pageroute/' . $this->routeId . '/page-edit/p1');
     $this->assertText('p1');
@@ -256,11 +210,6 @@ class PageRoutePageTypesTestCase extends
     $this->assertText('p4');
   }
 
-  function testingPage5Edit() {
-    $this->drupalGet('admin/build/pageroute/' . $this->routeId . '/page-edit/p5');
-    $this->assertText('p5');
-  }
-
   function testingEditRoute() {
     $this->drupalGet('admin/build/pageroute/' . $this->routeId . '/edit');
     $this->assertText('Edit route');
@@ -270,7 +219,7 @@ class PageRoutePageTypesTestCase extends
     $this->drupalGet('admin/build/pageroute/' . $this->routeId . '/add');
     $this->assertText('Choose a page type:');
   }
-  
+
   function testingClickThrougPages() {
     $this->drupalGet('admin/build/pageroute/' . $this->routeId . '/page-edit/p1');
     $this->assertText('p1');
@@ -287,7 +236,6 @@ class PageRoutePageTypesTestCase extends
     $edit = array(
       'title' => $this->randomName(),
     );
-    $this->drupalPost('pageroute1/p4//', $edit, 'Forward');
-    $this->assertText('p5');
   }
-}
\ No newline at end of file
+}
+
