pgsql - fix Crm_Acl_RolesTest - hard coded int ids in test data
authorPaul Mehrer <p.mehrer@metaways.de>
Tue, 4 Jul 2017 07:42:57 +0000 (09:42 +0200)
committerPaul Mehrer <p.mehrer@metaways.de>
Tue, 4 Jul 2017 08:24:48 +0000 (10:24 +0200)
changed to string

Change-Id: I9df65add95099fac43c1f4aa7443ed371cf72472
Reviewed-on: http://gerrit.tine20.com/customers/5004
Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
Tested-by: Paul Mehrer <p.mehrer@metaways.de>
tests/tine20/Crm/Acl/RolesTest.php
tests/tine20/Tinebase/Acl/RolesTest.php

index 8be260c..55b7010 100644 (file)
@@ -42,12 +42,12 @@ class Crm_Acl_RolesTest extends TestCase
             'accountEmailAddress'   => 'crmphpunit@metaways.de'
         ));
         $this->objects['role'] = new Tinebase_Model_Role(array(
-            'id'                    => 10,
+            'id'                    => '10',
             'name'                  => 'phpunitrole',
             'description'           => 'test role for phpunit',
         ));
         $this->objects['role_2'] = new Tinebase_Model_Role(array(
-            'id'                    => 11,
+            'id'                    => '11',
             'name'                  => 'phpunitrole 2',
             'description'           => 'test role 2 for phpunit',
         ));
index 47d1926..f8146d0 100644 (file)
@@ -41,12 +41,12 @@ class Tinebase_Acl_RolesTest extends TestCase
             'accountEmailAddress'   => 'phpunit@metaways.de'
         ));
         $this->objects['role'] = new Tinebase_Model_Role(array(
-            'id'                    => 10,
+            'id'                    => '10',
             'name'                  => 'phpunitrole',
             'description'           => 'test role for phpunit',
         ));
         $this->objects['role_2'] = new Tinebase_Model_Role(array(
-            'id'                    => 11,
+            'id'                    => '11',
             'name'                  => 'phpunitrole 2',
             'description'           => 'test role 2 for phpunit',
         ));