mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Multiple global uses registered in the same path test added.
This commit is contained in:
@ -101,6 +101,7 @@
|
|||||||
|
|
||||||
PASS Tests\Plugins\Traits
|
PASS Tests\Plugins\Traits
|
||||||
✓ it allows global uses
|
✓ it allows global uses
|
||||||
|
✓ it allows multiple global uses registered in the same path
|
||||||
|
|
||||||
PASS Tests\Unit\Actions\AddsDefaults
|
PASS Tests\Unit\Actions\AddsDefaults
|
||||||
✓ it sets defaults
|
✓ it sets defaults
|
||||||
@ -143,5 +144,5 @@
|
|||||||
WARN Tests\Visual\Success
|
WARN Tests\Visual\Success
|
||||||
s visual snapshot of test suite on success
|
s visual snapshot of test suite on success
|
||||||
|
|
||||||
Tests: 6 skipped, 78 passed
|
Tests: 6 skipped, 79 passed
|
||||||
Time: 3.09s
|
Time: 3.44s
|
||||||
|
|||||||
@ -12,4 +12,13 @@ trait PluginTrait
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trait SecondPluginTrait
|
||||||
|
{
|
||||||
|
public function assertSecondPluginTraitGotRegistered(): void
|
||||||
|
{
|
||||||
|
assertTrue(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Pest\Plugin::uses(PluginTrait::class);
|
Pest\Plugin::uses(PluginTrait::class);
|
||||||
|
Pest\Plugin::uses(SecondPluginTrait::class);
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
it('allows global uses')->assertPluginTraitGotRegistered();
|
it('allows global uses')->assertPluginTraitGotRegistered();
|
||||||
|
|
||||||
|
it('allows multiple global uses registered in the same path')->assertSecondPluginTraitGotRegistered();
|
||||||
|
|||||||
Reference in New Issue
Block a user