You are here

protected function DataTestCase::testData in Data 6

Same name and namespace in other branches
  1. 8 tests/data.test.inc \DataTestCase::testData()
  2. 7 tests/data.test.inc \DataTestCase::testData()

Test data.

2 calls to DataTestCase::testData()
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 45
Contains class definition for Data module test cases.

Class

DataTestCase
Base class for Data module test cases.

Code

protected function testData() {
  return array(
    0 => array(
      'id' => 0,
      'char0' => 'test00',
      'char1' => 'test01',
    ),
    1 => array(
      'id' => 1,
      'char0' => 'test10',
      'char1' => 'test11',
    ),
  );
}