fix: update tests and exports to use consistent class references

- Use `NativeQuery` instead of `AbstractQuery` in `SummaryBudgetTest`
- Replace string entity reference with `Activity::class` in `ListActivity`
This commit is contained in:
2025-09-09 16:00:55 +02:00
parent 34213ac093
commit af7d635714
2 changed files with 5 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ use Chill\PersonBundle\Entity\Household\HouseholdMember;
use Chill\PersonBundle\Entity\Person;
use Doctrine\ORM\AbstractQuery;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\NativeQuery;
use Doctrine\ORM\Query;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
@@ -38,7 +39,7 @@ final class SummaryBudgetTest extends TestCase
public function testGenerateSummaryForPerson(): void
{
$queryCharges = $this->prophesize(AbstractQuery::class);
$queryCharges = $this->prophesize(NativeQuery::class);
$queryCharges->getResult()->willReturn([
[
'sum' => 250.0,
@@ -49,7 +50,7 @@ final class SummaryBudgetTest extends TestCase
$queryCharges->setParameters(Argument::type('array'))
->will(static fn ($args, $query) => $query);
$queryResources = $this->prophesize(AbstractQuery::class);
$queryResources = $this->prophesize(NativeQuery::class);
$queryResources->getResult()->willReturn([
[
'sum' => 1500.0,