Neos\Flow\Tests\Functional\Persistence\Doctrine\QueryTest::simpleQueryCanBeExecutedAfterDeserialization PHP Метод

simpleQueryCanBeExecutedAfterDeserialization() публичный Метод

    public function simpleQueryCanBeExecutedAfterDeserialization()
    {
        $testEntityRepository = new Fixtures\TestEntityRepository();
        $testEntityRepository->removeAll();
        $testEntity1 = new Fixtures\TestEntity();
        $testEntity1->setName('Flow');
        $testEntityRepository->add($testEntity1);
        $this->persistenceManager->persistAll();
        $query = new Query(Fixtures\TestEntity::class);
        $serializedQuery = serialize($query);
        $unserializedQuery = unserialize($serializedQuery);
        $this->assertEquals(1, $unserializedQuery->execute()->count());
        $this->assertEquals([$testEntity1], $unserializedQuery->execute()->toArray());
    }