I use Testing with CiviCRM and Views. But, during the execution I receive an database error because the table simpletest00000civicrm_contact doesn't exists.
It's normal, because the civicrm_contact table is in the external module CiviCRM that was not installed during the Testing SetUp.
Here's a list of patches that add two functionnalities
1- Update the Drupal Core and Testing Core to add the possibility to have some prefixes during the Testing execution (these prefixes aren't used during a normal execution, just used during Testing execution).
2- Update the Drupal Core to add the possibility to have the "*" wildcard for database prefix. Because, in my case I have 140+ civicrm tables. And, also, some tables are created by the CiviCRM api during the execution with a name not known at the SetUp phase.
NOTE : Example database setting in settings.php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'aDatabaseName',
'username' => 'aUserName',
'password' => 'aPassWord',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => array(
'default' => '',
'simpletest.prefixes' => array(
'civicrm*' => '',
),
),
),
),
);
I will appreciate your comments :)
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_web_test_case.php_.patch | 1.64 KB | jchabot | |
| database.inc_.patch | 2.23 KB | jchabot | |
| bootstrap.inc_.patch | 1.15 KB | jchabot |