Skip to content

Commit

Permalink
Update custom-helpers.md with more consistent use of "Feature"
Browse files Browse the repository at this point in the history
  • Loading branch information
philmareu authored Jan 19, 2024
1 parent 182faea commit 9c5e968
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function mockPayments(): object
return $client;
}

// tests/Features/PaymentsTest.php
// tests/Feature/PaymentsTest.php
it('may buy a book', function () {
$client = mockPayments();

Expand All @@ -63,7 +63,7 @@ use Mockery;
// tests/TestCase.php
class TestCase extends BaseTestCase
{
public function mockPayments(): void
protected function mockPayments(): void
{
$client = Mockery::mock(PaymentClient::class);

Expand All @@ -74,9 +74,9 @@ class TestCase extends BaseTestCase
}

// tests/Pest.php
uses(TestCase::class)->in('Features');
uses(TestCase::class)->in('Feature');

// tests/Features/PaymentsTest.php
// tests/Feature/PaymentsTest.php
it('may buy a book', function () {
$client = $this->mockPayments();

Expand Down

0 comments on commit 9c5e968

Please sign in to comment.