fixed PluginTest
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Lang 2023-09-19 20:06:41 +02:00
parent 3420a03fbc
commit e4ff680e4f
2 changed files with 8 additions and 1 deletions

View File

@ -658,3 +658,9 @@ parameters:
message: "#^Generic type Illuminate\\\\Pagination\\\\LengthAwarePaginator\\<int, App\\\\Member\\\\Member\\> in PHPDoc tag @return specifies 2 template types, but class Illuminate\\\\Pagination\\\\LengthAwarePaginator supports only 1\\: TValue$#"
count: 1
path: app/Member/Actions/SearchAction.php
-
message: "#^Class Plugins\\\\Test\\\\ServiceProvider not found\\.$#"
count: 1
path: tests/Unit/Plugin/PluginTest.php

View File

@ -3,6 +3,7 @@
namespace Tests\Unit\Plugin;
use Tests\TestCase;
use Plugins\Test\ServiceProvider;
class PluginTest extends TestCase
{
@ -27,7 +28,7 @@ class PluginTest extends TestCase
parent::setUp();
$this->assertInstanceOf('Plugins\\Test\\ServiceProvider', app()->getProvider('Plugins\\Test\\ServiceProvider'));
$this->assertInstanceOf(ServiceProvider::class, app()->getProvider('Plugins\\Test\\ServiceProvider'));
array_map(fn ($file) => unlink($file), glob($pluginsPath.'/*'));
rmdir($pluginsPath);