Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 21, 2024
1 parent fc9b9cc commit 67f4adb
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/AssetServiceUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AssetServiceUnitTest extends UnitTestCase
{
protected function setUp(): void
{
self::setupKernel();
self::resetKernel();
self::mockConfig();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/BaseFoundationCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BaseFoundationCollectionTest extends UnitTestCase
{
public function testBaseFoundationCollectionInitialization()
{
$this->setupKernel();
self::resetKernel();

$booted = BaseFoundationCollectionTestClass::init(HydeKernel::getInstance())->boot();

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/BreadcrumbsComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BreadcrumbsComponentTest extends UnitTestCase
{
protected function setUp(): void
{
self::setupKernel();
self::resetKernel();
self::mockConfig();
}

Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/BuildTaskUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function testCanWriteToOutput()

public function testCreatedSiteFile()
{
self::setupKernel();
self::resetKernel();

$task = new BufferedTestBuildTask();

Expand All @@ -164,7 +164,7 @@ public function testCreatedSiteFile()

public function testCreatedSiteFileWithAbsolutePath()
{
self::setupKernel();
self::resetKernel();

$task = new BufferedTestBuildTask();

Expand Down
4 changes: 1 addition & 3 deletions tests/Unit/HtmlTestingSupportMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ class HtmlTestingSupportMetaTest extends UnitTestCase

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

self::setupKernel();
self::resetKernel();

$this->html ??= file_get_contents(Hyde::vendorPath('resources/views/homepages/welcome.blade.php'));
}
Expand Down
7 changes: 5 additions & 2 deletions tests/Unit/NavItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
*/
class NavItemTest extends UnitTestCase
{
protected static bool $needsKernel = true;
protected static bool $needsConfig = true;
public static function setUpBeforeClass(): void
{
self::resetKernel();
self::mockConfig();
}

protected function setUp(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/NavigationDataFactoryUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NavigationDataFactoryUnitTest extends UnitTestCase
{
protected function setUp(): void
{
self::setupKernel();
self::resetKernel();
self::mockConfig();
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/UnixsumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testMethodReturnsSameValueForStringWithMixedEndOfLineSequences()

public function testMethodReturnsSameValueWhenLoadedFromFileUsingShorthand()
{
self::setupKernel();
self::resetKernel();

$string = "foo\nbar\r\nbaz\r\n";

Expand Down

0 comments on commit 67f4adb

Please sign in to comment.