Skip to content

Commit

Permalink
Refactor test to unit test
Browse files Browse the repository at this point in the history
Saves about 100ms (down from 300ms)
  • Loading branch information
caendesilva committed Sep 9, 2024
1 parent ad55e0c commit e2b90b5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/framework/tests/Unit/Facades/AssetFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@
namespace Hyde\Framework\Testing\Unit\Facades;

use Hyde\Facades\Asset;
use Hyde\Testing\UnitTestCase;
use Hyde\Testing\CreatesApplication;
use Hyde\Framework\Services\AssetService;
use Hyde\Testing\TestCase;

/**
* @covers \Hyde\Facades\Asset
*/
class AssetFacadeTest extends TestCase
class AssetFacadeTest extends UnitTestCase
{
use CreatesApplication;

protected function setUp(): void
{
$this->createApplication();
}

public function testAssetFacadeReturnsTheAssetService()
{
$this->assertInstanceOf(AssetService::class, Asset::getFacadeRoot());
Expand Down

0 comments on commit e2b90b5

Please sign in to comment.