Skip to content

Commit

Permalink
fix: move mocks to src directory (#21)
Browse files Browse the repository at this point in the history
* fix: move mocks to src directory

* fix: mark mock class as codeCoverageIgnore
  • Loading branch information
rdesorme committed May 13, 2024
1 parent 3811452 commit 89812a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Facades/RecaptchaEnterprise.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Illuminate\Support\Facades\Facade;
use Oneduo\RecaptchaEnterprise\Contracts\RecaptchaContract;
use Oneduo\RecaptchaEnterprise\Services\RecaptchaService;
use Oneduo\RecaptchaEnterprise\Tests\Mocks\FakeRecaptchaEnterprise;
use Oneduo\RecaptchaEnterprise\Mocks\FakeRecaptchaEnterprise;

/**
* @method static static setThreshold(float $threshold)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

declare(strict_types=1);

namespace Oneduo\RecaptchaEnterprise\Tests\Mocks;
namespace Oneduo\RecaptchaEnterprise\Mocks;

use Carbon\CarbonInterval;
use Google\Cloud\RecaptchaEnterprise\V1\TokenProperties;
use Illuminate\Support\Carbon;
use Oneduo\RecaptchaEnterprise\Contracts\RecaptchaContract;
use RuntimeException;

/**
* @codeCoverageIgnore
*/
class FakeRecaptchaEnterprise implements RecaptchaContract
{
public ?float $threshold;
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Oneduo\RecaptchaEnterprise\Contracts\RecaptchaContract;
use Oneduo\RecaptchaEnterprise\RecaptchaEnterpriseServiceProvider;
use Oneduo\RecaptchaEnterprise\Tests\Mocks\FakeRecaptchaEnterprise;
use Oneduo\RecaptchaEnterprise\Mocks\FakeRecaptchaEnterprise;
use Orchestra\Testbench\TestCase as Orchestra;

class TestCase extends Orchestra
Expand Down

0 comments on commit 89812a0

Please sign in to comment.