fixed PluginTest
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3420a03fbc
commit
e4ff680e4f
|
@ -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$#"
|
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
|
count: 1
|
||||||
path: app/Member/Actions/SearchAction.php
|
path: app/Member/Actions/SearchAction.php
|
||||||
|
|
||||||
|
-
|
||||||
|
message: "#^Class Plugins\\\\Test\\\\ServiceProvider not found\\.$#"
|
||||||
|
count: 1
|
||||||
|
path: tests/Unit/Plugin/PluginTest.php
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
namespace Tests\Unit\Plugin;
|
namespace Tests\Unit\Plugin;
|
||||||
|
|
||||||
use Tests\TestCase;
|
use Tests\TestCase;
|
||||||
|
use Plugins\Test\ServiceProvider;
|
||||||
|
|
||||||
class PluginTest extends TestCase
|
class PluginTest extends TestCase
|
||||||
{
|
{
|
||||||
|
@ -27,7 +28,7 @@ class PluginTest extends TestCase
|
||||||
|
|
||||||
parent::setUp();
|
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.'/*'));
|
array_map(fn ($file) => unlink($file), glob($pluginsPath.'/*'));
|
||||||
rmdir($pluginsPath);
|
rmdir($pluginsPath);
|
||||||
|
|
Loading…
Reference in New Issue