Skip to content

Commit

Permalink
refactor: fix function names
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsicor committed Sep 12, 2024
1 parent 91637bf commit 67e650f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function ddDatabaseQueries(): void
* Assert the number of database queries.
* @param int $expectedCount
*/
protected function assertDatabaseQueriesCount(int $expectedCount): void
protected function assertDatabaseQueryCount(int $expectedCount): void

Check warning on line 53 in src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php#L53

Added line #L53 was not covered by tests
{
$actualCount = count($this->getDatabaseQueries());
$this->assertEquals($expectedCount, $actualCount, "Expected $expectedCount database queries, but got $actualCount.");

Check warning on line 56 in src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php#L55-L56

Added lines #L55 - L56 were not covered by tests
Expand All @@ -76,7 +76,7 @@ protected function profileDatabaseQueries(callable $callback): mixed
* @param callable $callback
* @return mixed
*/
protected function profileDatabaseQueriesCount(int $expectedCount, callable $callback): mixed
protected function profileDatabaseQueryCount(int $expectedCount, callable $callback): mixed

Check warning on line 79 in src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php

View check run for this annotation

Codecov / codecov/patch

src/Traits/TestTraits/PhpUnit/TestDatabaseProfilerTrait.php#L79

Added line #L79 was not covered by tests
{
return $this->profileDatabaseQueries(function () use ($expectedCount, $callback) {
$result = $callback();
Expand Down

0 comments on commit 67e650f

Please sign in to comment.