innobraingmbh / laravel-onoffice-adapter

Query onOffice like it was your ORM
MIT License
3 stars 1 forks source link

[Bug]: Faked response does not respect more than 1 page due expected 500 entries #8

Closed Katalam closed 2 weeks ago

Katalam commented 2 weeks ago

What happened?

When I fake more than one page, the get method will not return all pages due the counting is expecting a pageSize of 500

How to reproduce the bug

    EstateRepository::fake([
        EstateRepository::response([
            EstateRepository::page(recordFactories: [
                EstateFactory::make()
                    ->id(1),
            ]),
            EstateRepository::page(recordFactories: [
                EstateFactory::make()
                    ->id(2),
            ]),
        ]),
    ]);

Package Version

1.2.4

PHP Version

8.3.0

Laravel Version

11.X

Which operating systems does with happen with?

macOS

Notes

No response

Katalam commented 2 weeks ago

9