Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: DB layer 2.0 functional testing.

Development:DB layer 2.0 functional testing

From MoodleDocs
Revision as of 07:17, 20 May 2008 by Nicolas Connault (talk | contribs) (DDL tests)

Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.


Template:Development:dmllib 2.0

DDL tests

Based on tests already used in xmldb, the following have been implemented in simpletest:

  • TestCreateTable
  • TestDropTable
  • TestAddEnumField
  • TestAddNumericField
  • TestDropField
  • TestChangeFieldType
  • TestChangeFieldPrecision
  • TestChangeFieldSign
  • TestChangeFieldNullability
  • TestChangeFieldDefault
  • TestAddUniqueIndex
  • TestAddNonUniqueIndex
  • TestFindIndexName
  • TestDropIndex
  • TestAddUniqueKey
  • TestAddForeignUniqueKey
  • TestDropKey
  • TestAddForeignKey
  • TestDropForeignKey
  • TestChangeFieldEnum
  • TestRenameIndex
  • TestRenameKey Experimental
  • TestRenameField Experimental
  • TestRenameTable