Skip to content

Commit

Permalink
Refactor test to be a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 26, 2024
1 parent 9ba410a commit 9edfe94
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,30 @@

declare(strict_types=1);

namespace Hyde\Framework\Testing\Feature\Support;
namespace Hyde\Framework\Testing\Unit\Support;

use Hyde\Facades\Filesystem;
use Hyde\Framework\Exceptions\FileNotFoundException;
use Hyde\Hyde;
use Hyde\Support\Filesystem\MediaFile;
use Hyde\Testing\TestCase;
use Hyde\Testing\UnitTestCase;
use Hyde\Testing\CreatesTemporaryFiles;

/**
* @covers \Hyde\Support\Filesystem\MediaFile
*/
class MediaFileTest extends TestCase
class MediaFileTest extends UnitTestCase
{
use CreatesTemporaryFiles;

protected static bool $needsKernel = true;
protected static bool $needsConfig = true;

protected function tearDown(): void
{
$this->cleanUpFilesystem();
}

public function testCanConstruct()
{
$file = new MediaFile('foo');
Expand Down

0 comments on commit 9edfe94

Please sign in to comment.