<commit_before><?php
namespace Kunstmaan\TranslatorBundle\Tests\Service\Migrations;

use Kunstmaan\TranslatorBundle\Tests\BaseTestCase;

class MigrationsServiceTest extends BaseTestCase
{

    private $translationDomainRepository;

    public function setUp()
    {
        parent::setUp();
        $this->translationRepository = $this->getContainer()->get('kunstmaan_translator.repository.translation');
        $this->translationDomainRepository = $this->getContainer()->get('kunstmaan_translator.repository.translation_domain');
        $this->migrationsService = $this->getContainer()->get('kunstmaan_translator.service.migrations.migrations');
    }

    /**
     * @group migrations
     */
    public function testGetDiffSqlArray()
    {
        $result = $this->migrationsService->getDiffSqlArray();
        $this->assertGreaterThanOrEqual(1, count($result));
        $this->assertStringStartsWith('INSERT INTO "kuma_translation"', $result[0]);
        $this->assertStringStartsWith('UPDATE "kuma_translation" SET "file"', $result[3]);
    }
}<commit_msg>Fix travis build<commit_after><?php
namespace Kunstmaan\TranslatorBundle\Tests\Service\Migrations;

use Kunstmaan\TranslatorBundle\Tests\BaseTestCase;

class MigrationsServiceTest extends BaseTestCase
{

    private $translationDomainRepository;

    public function setUp()
    {
        parent::setUp();
        $this->translationRepository = $this->getContainer()->get('kunstmaan_translator.repository.translation');
        $this->translationDomainRepository = $this->getContainer()->get('kunstmaan_translator.repository.translation_domain');
        $this->migrationsService = $this->getContainer()->get('kunstmaan_translator.service.migrations.migrations');
    }

    /**
     * @group migrations
     */
    public function testGetDiffSqlArray()
    {
        $result = $this->migrationsService->getDiffSqlArray();
        $this->assertGreaterThanOrEqual(1, count($result));
        $this->assertStringStartsWith('INSERT INTO "kuma_translation"', $result[0]);
        $this->assertStringStartsWith('INSERT INTO "kuma_translation_domain"', $result[1]);
    }
}
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 4.520725388601036, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2565189', 'n_tokens_mistral': 600, 'n_tokens_neox': 615, 'n_words': 79}