/** * @codeCoverageIgnore */ public static function initialize(Jam_Meta $meta) { parent::initialize($meta); $meta->table('shippings')->fields(array('width' => Jam::field('float', array('places' => 2)), 'height' => Jam::field('float', array('places' => 2)), 'depth' => Jam::field('float', array('places' => 2)), 'weight' => Jam::field('float', array('places' => 2))))->validator('width', 'height', 'depth', 'weight', array('present' => TRUE, 'numeric' => array('greater_than_or_equal_to' => 0))); }
/** * @covers Model_Shipping::format_shipping_time * @dataProvider data_format_shipping_time */ public function test_format_shipping_time($min, $max, $expected) { $this->assertEquals($expected, Model_Shipping::format_shipping_time($min, $max)); }