SyncController example

static::assertInstanceOf(SyncOperation::class$operations[0]);

                $operation = $operations[0];
                static::assertSame('delete-mapping', $operation->getKey());
                static::assertSame('product', $operation->getEntity());
                static::assertSame('delete', $operation->getAction());
                static::assertEquals($criteria$operation->getCriteria());

                return new SyncResult([]);
            });

        $controller = new SyncController($servicenew Serializer([][new JsonEncoder()]));

        $controller->sync($request, Context::createDefaultContext());
    }
}
Home | Imprint | This part of the site doesn't use cookies.