mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +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
|
||||
✓ 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
|
||||
|
||||
@ -12,4 +12,13 @@ trait PluginTrait
|
||||
}
|
||||
}
|
||||
|
||||
trait SecondPluginTrait
|
||||
{
|
||||
public function assertSecondPluginTraitGotRegistered(): void
|
||||
{
|
||||
assertTrue(true);
|
||||
}
|
||||
}
|
||||
|
||||
Pest\Plugin::uses(PluginTrait::class);
|
||||
Pest\Plugin::uses(SecondPluginTrait::class);
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
it('allows global uses')->assertPluginTraitGotRegistered();
|
||||
|
||||
it('allows multiple global uses registered in the same path')->assertSecondPluginTraitGotRegistered();
|
||||
|
||||
Reference in New Issue
Block a user