use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Api\Sync\SyncService
*/
class SyncServiceTest extends TestCase
{ public function testSyncSingleOperation(): void
{ $writeResult =
new WriteResult( [ 'product' =>
[new EntityWriteResult('deleted-id',
[], 'product', EntityWriteResult::OPERATION_DELETE
)],
],
[],
[ 'product' =>
[new EntityWriteResult('created-id',
[], 'product', EntityWriteResult::OPERATION_INSERT
)],
] );
$writer =
$this->
createMock(EntityWriterInterface::
class);
$writer