/** * @expectedException \Phaza\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(); }