Example #1
0
 function test_if_models_has_automagic_field_methods()
 {
     $this->assertTrue(is_array(Purchase::findByDate(1)), 'Check if automagic field method works on Purchase');
     $this->assertTrue(is_array(Product::findByPrice(1)), 'Check if automagic field method works on Product');
 }