Skip to content

Commit

Permalink
test: assert postLoad has data first
Browse files Browse the repository at this point in the history
  • Loading branch information
vuongxuongminh committed Jun 26, 2023
1 parent 338deac commit da29eb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ public function testAttachEntityListeners(): void
$metadata2 = $factory2->getMetadataFor(AttachEntityListenersListenerTestFooEntity::class);

self::assertArrayHasKey('postLoad', $metadata2->entityListeners);
self::assertEquals(AttachEntityListenersListenerTestListener::class, $metadata2->entityListeners['postLoad'][0]['class']);
self::assertCount(1, $metadata2->entityListeners['postLoad']);
self::assertEquals('postLoadHandler', $metadata2->entityListeners['postLoad'][0]['method']);
self::assertEquals(AttachEntityListenersListenerTestListener::class, $metadata2->entityListeners['postLoad'][0]['class']);
}

public function testAttachToExistingEntityListeners(): void
Expand Down

0 comments on commit da29eb6

Please sign in to comment.