Browse Source

Change stubs to use app.create lang instead of master.create

remove_docblocks
Nafies Luthfi 5 years ago
parent
commit
56ec4ac798
  1. 1
      src/stubs/resources/lang/en/app.stub
  2. 1
      src/stubs/resources/lang/id/app.stub
  3. 2
      src/stubs/testcases/feature/full.stub
  4. 2
      src/stubs/testcases/feature/simple.stub
  5. 6
      tests/Generators/FeatureTestGeneratorTest.php
  6. 2
      tests/Generators/LangGeneratorTest.php
  7. 4
      tests/Generators/Simple/FeatureTestGeneratorTest.php

1
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',

1
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',

2
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());

2
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',
]);

6
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());

2
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',

4
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',
]);

Loading…
Cancel
Save