Skip to content

Commit cc81c1b

Browse files
authored
Merge pull request #29 from RonasIT/prd-1479-update-laravel-version
chore: update ronasit/laravel-helpers and laravel requires versions
2 parents ef22ad9 + cbc67e2 commit cc81c1b

File tree

4 files changed

+22
-122
lines changed

4 files changed

+22
-122
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"minimum-stability": "alpha",
2929
"require": {
3030
"php": ">=8.3",
31-
"laravel/framework": "^11.30",
31+
"laravel/framework": ">=11.30",
3232
"php-mock/php-mock-phpunit": "^2.10",
3333
"ext-json": "*",
34-
"ronasit/laravel-helpers": "^3.0.0-beta"
34+
"ronasit/laravel-helpers": "^3.3"
3535
},
3636
"require-dev": {
3737
"fakerphp/faker": "^1.23.1",

composer.lock

Lines changed: 17 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/InitCommandTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ public function testRunWithoutAdminAndReadmeCreation()
6868
[
6969
'renovate.json',
7070
$this->getFixture('renovate.json'),
71-
'optionalParameter',
72-
'optionalParameter',
7371
],
7472
);
7573

@@ -113,8 +111,6 @@ public function testRunWithAdminAndWithoutReadmeCreation()
113111
[
114112
'database/migrations/2018_11_11_111111_add_default_user.php',
115113
$this->getFixture('migration.php'),
116-
'optionalParameter',
117-
'optionalParameter',
118114
],
119115
);
120116

@@ -198,26 +194,18 @@ public function testRunWithAdminAndDefaultReadmeCreation()
198194
[
199195
'database/migrations/2018_11_11_111111_add_default_user.php',
200196
$this->getFixture('migration.php'),
201-
'optionalParameter',
202-
'optionalParameter',
203197
],
204198
[
205199
'README.md',
206200
$this->getFixture('default_readme.md'),
207-
'optionalParameter',
208-
'optionalParameter',
209201
],
210202
[
211203
'renovate.json',
212204
$this->getFixture('renovate.json'),
213-
'optionalParameter',
214-
'optionalParameter',
215205
],
216206
[
217207
'README.md',
218208
$this->getFixture('default_readme_after_using_renovate.md'),
219-
'optionalParameter',
220-
'optionalParameter',
221209
],
222210
);
223211

@@ -345,8 +333,6 @@ public function testRunWithAdminAndPartialReadmeCreation()
345333
[
346334
'README.md',
347335
$this->getFixture('partial_readme.md'),
348-
'optionalParameter',
349-
'optionalParameter',
350336
]
351337
);
352338

@@ -473,26 +459,18 @@ public function testRunWithAdminAndFullReadmeCreationAndRemovingInitializatorIns
473459
[
474460
'database/migrations/2018_11_11_111111_add_default_user.php',
475461
$this->getFixture('migration.php'),
476-
'optionalParameter',
477-
'optionalParameter',
478462
],
479463
[
480464
'README.md',
481465
$this->getFixture('full_readme.md'),
482-
'optionalParameter',
483-
'optionalParameter',
484466
],
485467
[
486468
'renovate.json',
487469
$this->getFixture('renovate.json'),
488-
'optionalParameter',
489-
'optionalParameter',
490470
],
491471
[
492472
'README.md',
493473
$this->getFixture('full_readme_after_using_renovate.md'),
494-
'optionalParameter',
495-
'optionalParameter',
496474
],
497475
);
498476

tests/Support/Traits/InitCommandMockTrait.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public function mockFilePutContent(
1515
...$arguments,
1616
): void {
1717
$callChain = [
18-
['.env.example', $this->getFixture($exampleEnvFixtureName), 'optionalParameter', 'optionalParameter'],
19-
['.env.development', $this->getFixture($developmentEnvFixtureName), 'optionalParameter', 'optionalParameter'],
18+
['.env.example', $this->getFixture($exampleEnvFixtureName)],
19+
['.env.development', $this->getFixture($developmentEnvFixtureName)],
2020
...$arguments,
2121
];
2222

@@ -44,10 +44,7 @@ public function mockFileGetContent(array ...$rawCallChain): void
4444
{
4545
$callChain = array_map(fn ($call) => $this->functionCall(
4646
name: 'file_get_contents',
47-
arguments: array_merge(
48-
$call['arguments'],
49-
array_fill(0, 5 - count($call['arguments']), 'optionalParameter'),
50-
),
47+
arguments: $call['arguments'],
5148
result: $call['result'],
5249
), $rawCallChain);
5350

0 commit comments

Comments
 (0)