<?php

namespace KupShop\I18nBundle\Tests;

use KupShop\I18nBundle\Translations\ProductsTranslation;

class TranslationsTest extends \DatabaseTestCase
{
    /** @var ProductsTranslation */
    private $translation;

    protected function setUp(): void
    {
        parent::setUp();

        $this->translation = $this->get(ProductsTranslation::class);
    }

    public function testSaveSingleObject()
    {
        $result = $this->translation->saveSingleObject('sk', 1, ['title' => 'Test']);

        $this->assertTrue($result);

        $result2 = $this->translation->saveSingleObject('sk', 1, ['title' => '']);

        $this->assertTrue($result2);
    }
}
