/**
  * @expectedException \Nanigans\SingleTableInheritance\Exceptions\SingleTableInheritanceException
  */
 public function testSaveThrowsExceptionForInvalidAttributesIfConfigured()
 {
     $bike = new Bike();
     $bike->color = 'red';
     $bike->cruft = 'red is my favorite';
     $bike->save();
 }
 /**
  * @expectedException \Nanigans\SingleTableInheritance\Exceptions\SingleTableInheritanceInvalidAttributesException
  */
 public function testSetFilteredAttributeshrowsIfConfigured()
 {
     $bike = new Bike();
     $bike->setFilteredAttributes(['fuel' => 'diesel']);
 }
 /**
  * @expectedException \Nanigans\SingleTableInheritance\Exceptions\SingleTableInheritanceException
  */
 public function testQueryThrowsExceptionIfConfigured()
 {
     $now = Carbon::now();
     DB::table('vehicles')->insert([['type' => 'bike', 'color' => 'red', 'cruft' => 'red is my favorite', 'created_at' => $now, 'updated_at' => $now]]);
     Bike::all()->first();
 }