Skip to content

Commit 2fb3c7a

Browse files
authored
[7.x] Add tests to verify #372 (#373)
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
1 parent fc912e2 commit 2fb3c7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Attributes/UsesVendorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Orchestra\Testbench\Tests\Attributes;
44

5+
use Illuminate\Contracts\Config\Repository as ConfigRepositoryContract;
56
use Illuminate\Filesystem\Filesystem;
67
use Orchestra\Testbench\Attributes\UsesVendor;
78
use Orchestra\Testbench\Tests\TestCase;
@@ -22,4 +23,13 @@ public function it_can_uses_vendor_attribute()
2223
$filesystem->hash(package_path('vendor', 'autoload.php'))
2324
);
2425
}
26+
27+
/** @test */
28+
#[UsesVendor]
29+
public function it_can_uses_config_from_attribute()
30+
{
31+
tap($this->app->make('config'), function ($repository) {
32+
$this->assertInstanceOf(ConfigRepositoryContract::class, $repository);
33+
});
34+
}
2535
}

0 commit comments

Comments
 (0)