Hi,
I use simpletest to clone the database and run some test.
However, I have this error when I tried to lunch a "simple test".
Une erreur HTTP AJAX s'est produite. Code de statut HTTP : 500 Informations de débogage suivantes. Chemin: /pacqs/batch?id=339&op=do StatutTexte: Service unavailable (with message) ReponseTexte: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY fit DESC LIMIT 0, 1' at line 1: SELECT * FROM {menu_router} WHERE path IN () ORDER BY fit DESC LIMIT 0, 1; Array ( ) in menu_get_item() (line 445 of /var/www/pacqs/includes/menu.inc).Uncaught exception thrown in session handler.PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'uid' cannot be null: UPDATE {sessions} SET uid=:db_update_placeholder_0, cache=:db_update_placeholder_1, hostname=:db_update_placeholder_2, session=:db_update_placeholder_3, timestamp=:db_update_placeholder_4 WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => 0 [:db_update_placeholder_2] => 10.63.2.207 [:db_update_placeholder_3] => batches|a:4:{i:335;b:1;i:336;b:1;i:337;b:1;i:339;b:1;} [:db_update_placeholder_4] => 1311324879 [:db_condition_placeholder_0] => rCc5xEv8VCR4UpLiiSWdfNXACD2GQhNqflEo6i6tVfw [:db_condition_placeholder_1] => ) in _drupal_session_write() (line 203 of /var/www/pacqs/includes/session.inc).
Here's my test :
/**
* @file
* Tests for portal_test.module.
*/
class PortalTestCase extends DrupalCloneTestCase {
public static function getInfo() {
return array(
'name' => 'Portal fonctionnality',
'description' => 'Create, view, edit, delete the different document type',
'group' => 'Portal',
);
}
function testDocumentsCreation() {
$this->drupalGet('');
$this->assertResponse(200);
}
}