public function testTypeExportArray() { $result = \Distilleries\Expendable\Helpers\StaticLabel::typeExport(); $this->assertTrue(is_array($result)); $this->assertArrayHasKey('Distilleries\\Expendable\\Contracts\\ExcelExporterContract', $result); $this->assertArrayHasKey('Distilleries\\Expendable\\Contracts\\CsvExporterContract', $result); }
public function buildForm() { $this->add('range', 'datepicker', ['label' => trans('expendable::form.date'), 'validation' => 'required', 'range' => true])->add('type', 'choice', ['choices' => StaticLabel::typeExport(), 'validation' => 'required', 'label' => trans('expendable::form.type')])->addDefaultActions(); }