Skip to content

Commit

Permalink
Remove useless parent calls in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Sep 8, 2024
1 parent 40e3dfe commit 2095b8c
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,13 @@ class FilesystemTest extends UnitTestCase

protected function setUp(): void
{
parent::setUp();

$this->originalBasePath = Hyde::getBasePath();
$this->filesystem = new Filesystem(Hyde::getInstance());
}

protected function tearDown(): void
{
Hyde::getInstance()->setBasePath($this->originalBasePath);

parent::tearDown();
}

public function testGetBasePathReturnsKernelsBasePath()
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Feature/MarkdownFileParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ protected function makeTestPost(): void
protected function tearDown(): void
{
Filesystem::unlink('_posts/test-post.md');

parent::tearDown();
}

public function testCanParseMarkdownFile()
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/BuildTaskServiceUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ protected function setUp(): void

protected function tearDown(): void
{
parent::tearDown();

$this->verifyMockeryExpectations();
}

Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/BuildWarningsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class BuildWarningsTest extends UnitTestCase
protected function tearDown(): void
{
app()->forgetInstance(BuildWarnings::class);

parent::tearDown();
}

public function testGetInstance()
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/HtmlTestingSupportMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class HtmlTestingSupportMetaTest extends UnitTestCase

protected function setUp(): void
{
parent::setUp();

self::resetKernel();

$this->html ??= file_get_contents(Hyde::vendorPath('resources/views/homepages/welcome.blade.php'));
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/HydePageDataFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class HydePageDataFactoryTest extends UnitTestCase
protected function tearDown(): void
{
self::mockConfig();

parent::tearDown();
}

public function testCanConstruct()
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/RenderHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class RenderHelperTest extends UnitTestCase

protected function setUp(): void
{
parent::setUp();

Render::swap(new RenderData());
View::swap(Mockery::mock(Factory::class)->makePartial());
}
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ protected function tearDown(): void
$this->addToAssertionCount(Mockery::getContainer()->mockery_getExpectationCount());

Mockery::close();

parent::tearDown();
}

public function testGetHostSelection()
Expand Down

0 comments on commit 2095b8c

Please sign in to comment.