Exemple #1
0
 public function testCreate()
 {
     $model = new CustomProp();
     $model->crashreport_id = 1;
     $model->name = 'VideoCard';
     $model->value = 'nVidia GeForce';
     $this->assertTrue($model->save());
     // Find created model
     $model = CustomProp::model()->find("name='VideoCard'");
     $this->assertTrue($model != Null);
 }