-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor phpunit dataprovider to be static #7419
Conversation
c3bec53
to
5d49131
Compare
@alexander-schranz Do you have an idea how to tackle the dataprovider in the
|
@mamazu let me know when this is ready to review. |
@mamazu I personally think the dataprovider in |
Yes, this would make the test much easier as well. |
092a6f1
to
9fb6926
Compare
9fb6926
to
4622db4
Compare
|
||
$suluNode = new SuluNode($node->reveal()); | ||
|
||
$this->assertSame($nodes, iterator_to_array($suluNode->getSharedSet())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mamazu if you want to convert a iterable
(array / Traversable) to an array you can use [...$suluNode->getSharedSet()]
this works with arrays and traversables.
748d746
to
8afd542
Compare
I think those should be all instances. |
@mamazu Thank you. Already merged also to 2.6 |
What's in this PR?
Fixing more dataproviders.
Todo