protected function assertEmptyUsers() { $this->assertNull(User::first()); }
private function createUserWithPerm(array $perm) { DB::table('users')->insert(["email" => $this->faker->email(), "password" => $this->faker->text(10), "activated" => 1, "permissions" => json_encode($perm), "created_at" => $this->getNowDateTime(), "updated_at" => $this->getNowDateTime()]); return User::first(); }