public function testShouldGetCurrentUsingEntityClassAndMorphinIt()
{
// Arrange
$object = new class extends ActiveRecord implements PolymorphableInterface
{
public function polymorph()
{
return 'Bacon';
}
};
$class = get_class($object);
$items = [$object->attributes];
$cursor = $this->getCursor($class, $items);
$this->setProtected($cursor, 'position', 0);
// Assert
$entity = $cursor->current();
$this->assertEquals('Bacon', $entity);
}