Skip to content

Commit

Permalink
Merge branch 'maintenence-2022-03' of github.com:DarkaOnLine/L5-Swagg…
Browse files Browse the repository at this point in the history
…er into maintenence-2022-03
  • Loading branch information
DarkaOnLine committed Mar 17, 2022
2 parents bbeea5b + 164d266 commit 1631764
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Generator.php
Expand Up @@ -3,8 +3,8 @@
namespace L5Swagger;

use Exception;
use Illuminate\Support\Arr;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Arr;
use L5Swagger\Exceptions\L5SwaggerException;
use OpenApi\Annotations\OpenApi;
use OpenApi\Annotations\Server;
Expand Down
2 changes: 0 additions & 2 deletions tests/GeneratorTest.php
Expand Up @@ -3,7 +3,6 @@
namespace Tests;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\File;
use L5Swagger\Exceptions\L5SwaggerException;
use OpenApi\Analysers\TokenAnalyser;
use OpenApi\Processors\CleanUnmerged;
Expand Down Expand Up @@ -78,7 +77,6 @@ public function itThrowsExceptionIfDocumentationDirWasNotCreated(): void
$config = $this->configFactory->documentationConfig();
$docs = $config['paths']['docs'];


$this->fileSystem
->expects($this->exactly(3))
->method('exists')
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase.php
Expand Up @@ -35,6 +35,7 @@ class TestCase extends OrchestraTestCase

/**
* @before
*
* @return void
*/
public function setUpFileSystem(): void
Expand Down Expand Up @@ -199,7 +200,7 @@ protected function makeGeneratorWithMockedFileSystem(): void
{
$this->generator = $this->app->make(Generator::class);

$reflectionObject = new \ReflectionObject($this->generator);
$reflectionObject = new \ReflectionObject($this->generator);
$reflectionProperty = $reflectionObject->getProperty('fileSystem');
$reflectionProperty->setAccessible(true);

Expand Down Expand Up @@ -248,8 +249,7 @@ protected function copyAssets(): void
);

$fileSystem->makeDirectory(
$base.'/laravel/vendor/swagger-api/swagger-ui/dist'
,0777,
$base.'/laravel/vendor/swagger-api/swagger-ui/dist', 0777,
true
);
}
Expand Down

0 comments on commit 1631764

Please sign in to comment.