public function testSave() { $faker = Faker\Factory::create(); $data = ['action' => $faker->name]; $this->call('POST', action($this->controller . '@postEdit'), $data); $total = \Distilleries\Expendable\Models\Service::where('action', $data['action'])->count(); $this->assertEquals(1, $total); }