protected function DataTestCase::testSchema in Data 7
Same name and namespace in other branches
- 8 tests/data.test.inc \DataTestCase::testSchema()
- 6 tests/data.test.inc \DataTestCase::testSchema()
Return a test schema.
2 calls to DataTestCase::testSchema()
- DataTestCaseAPI::testAPIFunctions in tests/
data.test - Test API functions of DataTable and DataHandler.
- DataTestCaseAPI::testCRUD in tests/
data.test - Run CRUD tests.
File
- tests/
data.test.inc, line 15 - Contains class definition for Data module test cases.
Class
- DataTestCase
- Base class for Data module test cases.
Code
protected function testSchema() {
return array(
'fields' => array(
'id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'char0' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
'default' => '',
),
'char1' => array(
'type' => 'varchar',
'length' => '255',
'not null' => FALSE,
'default' => '',
),
),
'indexes' => array(
'id' => array(
'id',
),
),
);
}