Skip to content

Commit

Permalink
feat(tests): Add tests for MatchKitsFacade to ensu
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Mar 12, 2024
1 parent 76a8edd commit 0ef9ef5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/Unit/MatchKitsFacadeTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Tests\Unit;

use Tests\TestCase;
use App\Facades\MatchKitsFacade;
use LiburuGenealogy\PhpDna\Matchkits;
use Illuminate\Support\Facades\App;

class MatchKitsFacadeTest extends TestCase
{
public function test_facade_resolves_to_matchkits_instance()
{
$matchKitsInstance = App::make('matchKits');
$this->assertInstanceOf(Matchkits::class, $matchKitsInstance);
}

public function test_process_method_is_callable_via_facade()
{
$matchKitsMock = \Mockery::mock(Matchkits::class);
$matchKitsMock->shouldReceive('process')->once()->andReturnTrue();

App::instance('matchKits', $matchKitsMock);

$result = MatchKitsFacade::process();
$this->assertTrue($result);
}
}

0 comments on commit 0ef9ef5

Please sign in to comment.