Skip to content

Commit

Permalink
Merge pull request #255 from philmareu/patch-1
Browse files Browse the repository at this point in the history
Update custom-helpers.md with more consistent use of "Feature"
  • Loading branch information
nunomaduro authored Jul 30, 2024
2 parents 5e14e52 + 9c5e968 commit da6bc3f
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 da6bc3f

Please sign in to comment.