Skip to content

Commit

Permalink
test: Add test for the Sprout facade
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Jan 25, 2025
1 parent 4b399db commit 491073f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/Unit/Facades/SproutFacadeTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);

namespace Sprout\Tests\Unit\Facades;

use PHPUnit\Framework\Attributes\Test;
use Sprout\Facades\Sprout;
use Sprout\Tests\Unit\UnitTestCase;

class SproutFacadeTest extends UnitTestCase
{
#[Test]
public function usesCorrectInstance(): void
{
$sprout = $this->app->make('sprout');

$this->assertEquals($sprout, Sprout::getFacadeRoot());
}
}

0 comments on commit 491073f

Please sign in to comment.