Hello,
I want to do a functionnal test using “children” or “find” operation.
The test looks like :
/**
* @test
*/
public function myTest()
{
$rootNode = $this->nodeDataRepository->findByIdentifier(‘d245107b-c9e3-4072-9ba0-3fed8a48f2c1’);$pages = (new FlowQuery([$rootNode]))->children("[instanceof Neos.Neos:Document]")->get(); \Neos\Flow\var_dump(count($pages)); //TODO rest of test }
But i’ve got an error
There was 1 error:
- TC\NeosSiteStarter\Tests\Functional\FlowQueryOperations\TestOperationTest::myTest
Neos\Eel\FlowQuery\FizzleException: children() must have a property name filter and cannot only have an attribute filter./Volumes/www/tc-neos-starter/Data/Temporary/Testing/Cache/Code/Flow_Object_Classes/Neos_Eel_FlowQuery_Operations_Object_ChildrenOperation.php:79
/Volumes/www/tc-neos-starter/Data/Temporary/Testing/Cache/Code/Flow_Object_Classes/Neos_Eel_FlowQuery_FlowQuery.php:203
/Volumes/www/tc-neos-starter/Data/Temporary/Testing/Cache/Code/Flow_Object_Classes/Neos_Eel_FlowQuery_FlowQuery.php:156
/Volumes/www/tc-neos-starter/Packages/Sites/TC.NeosSiteStarter/Tests/Functionnal/FlowQueryOperations/TestOperationTest.php:76
/Volumes/www/tc-neos-starter/Packages/Libraries/phpunit/phpunit/phpunit:47ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
Does anybody already have this kind of problem ?
Thank you
Best regards
Khang Doan