/**
  * @covers BaseActiveRecord::save
  *
  * @todo   Implement testSave().
  */
 public function testSave()
 {
     //using allergy model to test the active record
     $testmodel = new Allergy();
     $testmodel->setAttributes($this->testattributes);
     $testmodel->save();
     $result = Allergy::model()->findByAttributes(array('name' => 'allergy test'))->getAttributes();
     $expected = $this->testattributes;
     $this->assertEquals($expected['name'], $result['name'], 'attribute match');
 }