Browse Source

Remove use of mocked class

ADmad 1 year ago
parent
commit
389d62034d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/TestCase/ORM/Query/SelectQueryTest.php

+ 2 - 1
tests/TestCase/ORM/Query/SelectQueryTest.php

@@ -1550,7 +1550,8 @@ class SelectQueryTest extends TestCase
      */
     public function testHydrateBelongsToCustomEntity(): void
     {
-        $authorEntity = get_class($this->createMock('Cake\ORM\Entity'));
+        // phpcs:ignore
+        $authorEntity = get_class(new class extends Entity {});
         $table = $this->getTableLocator()->get('articles');
         $this->getTableLocator()->get('authors', [
             'entityClass' => '\\' . $authorEntity,