• Added legal value lists to all numeric columns that didn’t already have them (to catch ≤ vs. < errors).
• Unquoted test values for all numeric columns.
1 parent 6462222 commit bb3dbc738b7096b292e5aa4603488ba09c899f7c
Nigel Stanger authored on 20 May 2016
Showing 10 changed files
View
7
BDL/Test_classes/Assembly/BDL_Test_Assembly.php
'min_length' => 8,
'max_length' => 8,
'decimals' => 0,
'nullable' => false,
'test_value' => "237", ),
'test_value' => 237, ),
'COMPONENT_CODE' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER' ),
'min_length' => 8,
'max_length' => 8,
'decimals' => 0,
'nullable' => false,
'test_value' => "660", ),
'test_value' => 660, ),
'QUANTITY' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER', 'SMALLINT' ),
'min_length' => 4,
'max_length' => 5,
'decimals' => 0,
'underflow' => 0, // should be 1, but there was a typo in the spec
'overflow' => 10000,
'legal_values' => array( 1, 2, 9999 ),
'nullable' => false,
'test_value' => "456", ), );
'test_value' => 456, ), );
}
public function getPKColumnList()
View
7
BDL/Test_classes/Component/BDL_Test_Component.php
'min_length' => 8,
'max_length' => 8,
'decimals' => 0,
'nullable' => false,
'test_value' => "87654321", ),
'test_value' => 87654321, ),
'SUPPLIERS_CODE' => array( 'generic_type' => 'TEXT',
'sql_type' => array( 'VARCHAR2', 'VARCHAR' ),
'min_length' => 25,
'max_length' => 25,
'max_length' => 8,
'decimals' => 0,
'underflow' => -1,
'overflow' => 10000000,
'legal_values' => array( 0, 9999999 ),
'nullable' => false,
'test_value' => "456", ),
'test_value' => 456, ),
'SUPPLIER_ID' => array( 'generic_type' => 'NUMBER',
'sql_type' => array( 'NUMBER', 'INTEGER' ),
'min_length' => 7,
'max_length' => 7,
'decimals' => 0,
'nullable' => false,
'test_value' => "1", ), );
'test_value' => 1, ), );
}
public function getPKColumnList()
View
BDL/Test_classes/Customer/BDL_Test_Customer.php
View
BDL/Test_classes/Order_head/BDL_Test_Order_head.php
View
BDL/Test_classes/Order_line/BDL_Test_Order_line.php
View
BDL/Test_classes/Product/BDL_Test_Product.php
View
BDL/Test_classes/Sale_head/BDL_Test_Sale_head.php
View
BDL/Test_classes/Sale_line/BDL_Test_Sale_line.php
View
BDL/Test_classes/Staff/BDL_Test_Staff.php
View
BDL/Test_classes/Supplier/BDL_Test_Supplier.php