diff --git a/src/stubs/resources/lang/en/app.stub b/src/stubs/resources/lang/en/app.stub index a8eaf4b..e1e7935 100644 --- a/src/stubs/resources/lang/en/app.stub +++ b/src/stubs/resources/lang/en/app.stub @@ -8,6 +8,7 @@ return [ 'show_detail_title' => 'View :name :type detail', // Actions + 'create' => 'Create', 'show' => 'View Detail', 'edit' => 'Edit', 'delete' => 'Delete', diff --git a/src/stubs/resources/lang/id/app.stub b/src/stubs/resources/lang/id/app.stub index 83781db..f312823 100644 --- a/src/stubs/resources/lang/id/app.stub +++ b/src/stubs/resources/lang/id/app.stub @@ -8,6 +8,7 @@ return [ 'show_detail_title' => 'Lihat detail :type :name', // Actions + 'create' => 'Input', 'show' => 'Lihat Detail', 'edit' => 'Edit', 'delete' => 'Hapus', diff --git a/src/stubs/testcases/feature/full.stub b/src/stubs/testcases/feature/full.stub index 1f63517..1dce549 100644 --- a/src/stubs/testcases/feature/full.stub +++ b/src/stubs/testcases/feature/full.stub @@ -37,7 +37,7 @@ class ManageMasterTest extends TestCase $this->click(__('master.create')); $this->seeRouteIs('masters.create'); - $this->submitForm(__('master.create'), $this->getCreateFields()); + $this->submitForm(__('app.create'), $this->getCreateFields()); $this->seeRouteIs('masters.show', Master::first()); diff --git a/src/stubs/testcases/feature/simple.stub b/src/stubs/testcases/feature/simple.stub index 3894781..0abc569 100644 --- a/src/stubs/testcases/feature/simple.stub +++ b/src/stubs/testcases/feature/simple.stub @@ -29,7 +29,7 @@ class ManageMasterTest extends TestCase $this->click(__('master.create')); $this->seeRouteIs('masters.index', ['action' => 'create']); - $this->submitForm(__('master.create'), [ + $this->submitForm(__('app.create'), [ 'title' => 'Master 1 title', 'description' => 'Master 1 description', ]); diff --git a/tests/Generators/FeatureTestGeneratorTest.php b/tests/Generators/FeatureTestGeneratorTest.php index 9daa3dc..6b0e459 100644 --- a/tests/Generators/FeatureTestGeneratorTest.php +++ b/tests/Generators/FeatureTestGeneratorTest.php @@ -87,7 +87,7 @@ class Manage{$this->model_name}Test extends TestCase \$this->click(__('{$this->lang_name}.create')); \$this->seeRouteIs('{$this->table_name}.create'); - \$this->submitForm(__('{$this->lang_name}.create'), \$this->getCreateFields()); + \$this->submitForm(__('app.create'), \$this->getCreateFields()); \$this->seeRouteIs('{$this->table_name}.show', {$this->model_name}::first()); @@ -304,7 +304,7 @@ class Manage{$this->model_name}Test extends TestCase \$this->click(__('{$this->lang_name}.create')); \$this->seeRouteIs('{$this->table_name}.create'); - \$this->submitForm(__('{$this->lang_name}.create'), \$this->getCreateFields()); + \$this->submitForm(__('app.create'), \$this->getCreateFields()); \$this->seeRouteIs('{$this->table_name}.show', {$this->model_name}::first()); @@ -479,7 +479,7 @@ class Manage{$this->model_name}Test extends TestCase \$this->click(__('{$this->lang_name}.create')); \$this->seeRouteIs('{$this->table_name}.create'); - \$this->submitForm(__('{$this->lang_name}.create'), \$this->getCreateFields()); + \$this->submitForm(__('app.create'), \$this->getCreateFields()); \$this->seeRouteIs('{$this->table_name}.show', {$this->model_name}::first()); diff --git a/tests/Generators/LangGeneratorTest.php b/tests/Generators/LangGeneratorTest.php index 2dd55ff..1de9777 100644 --- a/tests/Generators/LangGeneratorTest.php +++ b/tests/Generators/LangGeneratorTest.php @@ -119,6 +119,7 @@ return [ 'show_detail_title' => 'View :name :type detail', // Actions + 'create' => 'Create', 'show' => 'View Detail', 'edit' => 'Edit', 'delete' => 'Delete', @@ -151,6 +152,7 @@ return [ 'show_detail_title' => 'Lihat detail :type :name', // Actions + 'create' => 'Input', 'show' => 'Lihat Detail', 'edit' => 'Edit', 'delete' => 'Hapus', diff --git a/tests/Generators/Simple/FeatureTestGeneratorTest.php b/tests/Generators/Simple/FeatureTestGeneratorTest.php index cbbb529..fd3ef56 100644 --- a/tests/Generators/Simple/FeatureTestGeneratorTest.php +++ b/tests/Generators/Simple/FeatureTestGeneratorTest.php @@ -79,7 +79,7 @@ class Manage{$this->model_name}Test extends TestCase \$this->click(__('{$this->lang_name}.create')); \$this->seeRouteIs('{$this->table_name}.index', ['action' => 'create']); - \$this->submitForm(__('{$this->lang_name}.create'), [ + \$this->submitForm(__('app.create'), [ 'title' => '{$this->model_name} 1 title', 'description' => '{$this->model_name} 1 description', ]); @@ -310,7 +310,7 @@ class Manage{$this->model_name}Test extends TestCase \$this->click(__('{$this->lang_name}.create')); \$this->seeRouteIs('{$this->table_name}.index', ['action' => 'create']); - \$this->submitForm(__('{$this->lang_name}.create'), [ + \$this->submitForm(__('app.create'), [ 'title' => '{$this->model_name} 1 title', 'description' => '{$this->model_name} 1 description', ]);