From 9d1ddd37430c5953640a59bc4cebee58eeca992d Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 17 Sep 2010 20:20:24 +0000 Subject: [PATCH] fixed spelling errors --- lib/ddl/simpletest/testddl.php | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/ddl/simpletest/testddl.php b/lib/ddl/simpletest/testddl.php index ce9e9a071eb..05da34fca30 100755 --- a/lib/ddl/simpletest/testddl.php +++ b/lib/ddl/simpletest/testddl.php @@ -671,7 +671,7 @@ class ddl_test extends UnitTestCase { // column continues being integer 10 not null default 2 $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['onenumber']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change column from integer to varchar. Must work because column has no dependencies $field = new xmldb_field('anothernumber'); @@ -680,7 +680,7 @@ class ddl_test extends UnitTestCase { // column is char 30 not null default 'test' now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'C'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change column back from char to integer $field = new xmldb_field('anothernumber'); @@ -689,7 +689,7 @@ class ddl_test extends UnitTestCase { // column is integer 8 not null default 5 now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change column once more from integer to char $field = new xmldb_field('anothernumber'); @@ -698,7 +698,7 @@ class ddl_test extends UnitTestCase { // column is char 30 not null default "test'n drop" now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'C'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // insert one string value and try to convert to integer. Must throw exception $record = new object(); @@ -715,7 +715,7 @@ class ddl_test extends UnitTestCase { } // column continues being char 30 not null default "test'n drop" now $this->assertEqual($columns['anothernumber']->meta_type, 'C'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes $DB->delete_records('test_table_cust0', array('id' => $rectodrop)); // Delete the string record // change the column from varchar to float @@ -725,7 +725,7 @@ class ddl_test extends UnitTestCase { // column is float 20,10 null default null $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'N'); // floats are seen as number - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column back from float to varchar $field = new xmldb_field('anothernumber'); @@ -734,7 +734,7 @@ class ddl_test extends UnitTestCase { // column is char 20 not null default "test" now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'C'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column from varchar to number $field = new xmldb_field('anothernumber'); @@ -743,7 +743,7 @@ class ddl_test extends UnitTestCase { // column is number 20,10 null default null now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'N'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column from number to integer $field = new xmldb_field('anothernumber'); @@ -752,7 +752,7 @@ class ddl_test extends UnitTestCase { // column is integer 2 null default null now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column from integer to text $field = new xmldb_field('anothernumber'); @@ -769,7 +769,7 @@ class ddl_test extends UnitTestCase { // column is number 20,10 null default null now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'N'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column from number to text $field = new xmldb_field('anothernumber'); @@ -778,7 +778,7 @@ class ddl_test extends UnitTestCase { // column is char text not null default "test" now $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'X'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column back from text to integer $field = new xmldb_field('anothernumber'); @@ -787,7 +787,7 @@ class ddl_test extends UnitTestCase { // column is integer 10 not null default 10 $columns = $DB->get_columns('test_table_cust0'); $this->assertEqual($columns['anothernumber']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // check original value has survived to all the type changes $this->assertTrue($rec = $DB->get_record('test_table_cust0', array('id' => $recoriginal))); @@ -816,7 +816,7 @@ class ddl_test extends UnitTestCase { $columns = $DB->get_columns('test_table1'); // cannot check the text type, only the metatype $this->assertEqual($columns['intro']->meta_type, 'X'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change char field from 30 to 20 $field = new xmldb_field('secondname'); @@ -824,7 +824,7 @@ class ddl_test extends UnitTestCase { $dbman->change_field_precision($table, $field); $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['secondname']->meta_type, 'C'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change char field from 20 to 10, having contents > 10cc. Throw exception $field = new xmldb_field('secondname'); @@ -838,7 +838,7 @@ class ddl_test extends UnitTestCase { // No changes in field specs at all $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['secondname']->meta_type, 'C'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change number field from 20,10 to 10,2 $field = new xmldb_field('grade'); @@ -846,7 +846,7 @@ class ddl_test extends UnitTestCase { $dbman->change_field_precision($table, $field); $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['grade']->meta_type, 'N'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change integer field from 10 to 2 $field = new xmldb_field('userid'); @@ -854,7 +854,7 @@ class ddl_test extends UnitTestCase { $dbman->change_field_precision($table, $field); $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['userid']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change the column from integer (2) to integer (6) (forces change of type in some DBs) $field = new xmldb_field('userid'); @@ -863,7 +863,7 @@ class ddl_test extends UnitTestCase { // column is integer 6 null default null now $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['userid']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // insert one record with 6-digit field $record = new object(); @@ -884,7 +884,7 @@ class ddl_test extends UnitTestCase { // No changes in field specs at all $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['userid']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes // change integer field from 10 to 3, in field used by index. must throw exception. $field = new xmldb_field('course'); @@ -898,7 +898,7 @@ class ddl_test extends UnitTestCase { // No changes in field specs at all $columns = $DB->get_columns('test_table1'); $this->assertEqual($columns['course']->meta_type, 'I'); - //TODO: chek the rest of attributes + //TODO: check the rest of attributes } public function testChangeFieldSign() {