-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
53 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ bootstrap/cache/ | |
composer.lock | ||
|
||
.phpunit.result.cache | ||
.phpunit.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM webdevops/php-nginx-dev:7.3 | ||
FROM webdevops/php-nginx-dev:8.1 | ||
|
||
RUN wget -O "/usr/local/bin/go-replace" "https://github.com/webdevops/goreplace/releases/download/1.1.2/gr-arm64-linux" \ | ||
RUN wget -O "/usr/local/bin/go-replace" "https://github.com/webdevops/go-replace/releases/download/22.9.0/go-replace.linux.arm64" \ | ||
&& chmod +x "/usr/local/bin/go-replace" \ | ||
&& "/usr/local/bin/go-replace" --version | ||
&& "/usr/local/bin/go-replace" --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace RonasIT\Support\AutoDoc\Tests\PhpUnitEventSubscribers; | ||
|
||
use Illuminate\Contracts\Console\Kernel; | ||
use Illuminate\Foundation\Application; | ||
use PHPUnit\Event; | ||
use PHPUnit\Event\Test\AfterLastTestMethodFinished; | ||
use RonasIT\Support\AutoDoc\Services\SwaggerService; | ||
|
||
final class SwaggerSubscriber implements Event\Test\AfterLastTestMethodFinishedSubscriber | ||
{ | ||
public function notify(AfterLastTestMethodFinished $event): void | ||
{ | ||
$this->createApplication(); | ||
|
||
app(SwaggerService::class)->saveProductionData(); | ||
} | ||
|
||
protected function createApplication(): Application | ||
{ | ||
$app = require_once base_path('bootstrap/app.php'); | ||
|
||
$app->loadEnvironmentFrom('.env.testing'); | ||
$app->make(Kernel::class)->bootstrap(); | ||
|
||
return $app; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
tests/fixtures/PushDocumentationCommandTest/documentation.json
This file was deleted.
Oops, something went wrong.