-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
I just got an error in PHPUnit w/ PHPStan for assertEmpty
on a loadByProperties
call:
------ -------------------------------------------------------------------------
Line docroot/modules/custom/mymodul/tests/src/Kernel/ApiInstallTest.php
------ -------------------------------------------------------------------------
32 Call to method PHPUnit\Framework\Assert::assertEmpty() with
non-empty-array<Drupal\Core\Entity\EntityInterface> will always
evaluate to false.
🪪 method.impossibleType
------ -------------------------------------------------------------------------
Code snippet that reproduces the problem
$this->assertEmpty($consumer_storage->loadByProperties(['client_id' => 'default_consumer']));
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working