public function testAutoCreateExperiments() { DB::table('experiments')->delete(); $ab = App::make('ab'); $ab->experiment(); $this->assertEquals(3, Experiment::count()); }
/** * Check if there are active experiments. * * @return string */ public function hasExperiments() { $count = Experiment::count(); return $count > 1; }