Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

DB layer 2.0 functional testing: Difference between revisions

From MoodleDocs
No edit summary
 
DDL tests
Line 1: Line 1:
{{Work in progress}}
{{Work in progress}}
{{Template:Development:dmllib 2.0}}
{{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

Revision as of 07:17, 20 May 2008

Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please join the discussion on moodle.org or use the page comments.


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