Multiple global uses registered in the same path test added.

This commit is contained in:
Francisco Kraefft
2020-06-17 11:57:08 -03:00
parent ae7991c7e9
commit accd4eb7b4
3 changed files with 14 additions and 2 deletions

View File

@ -101,6 +101,7 @@
PASS Tests\Plugins\Traits
✓ it allows global uses
✓ it allows multiple global uses registered in the same path
PASS Tests\Unit\Actions\AddsDefaults
✓ it sets defaults
@ -143,5 +144,5 @@
WARN Tests\Visual\Success
s visual snapshot of test suite on success
Tests: 6 skipped, 78 passed
Time: 3.09s
Tests: 6 skipped, 79 passed
Time: 3.44s

View File

@ -12,4 +12,13 @@ trait PluginTrait
}
}
trait SecondPluginTrait
{
public function assertSecondPluginTraitGotRegistered(): void
{
assertTrue(true);
}
}
Pest\Plugin::uses(PluginTrait::class);
Pest\Plugin::uses(SecondPluginTrait::class);

View File

@ -1,3 +1,5 @@
<?php
it('allows global uses')->assertPluginTraitGotRegistered();
it('allows multiple global uses registered in the same path')->assertSecondPluginTraitGotRegistered();