summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorNicolas Grekas <nicolas.grekas@gmail.com>2015-10-07 11:22:14 +0200
committerNicolas Grekas <nicolas.grekas@gmail.com>2015-10-07 11:22:14 +0200
commit1b109f6f25abd0db9ee20fc01f3b51b71d96bcb9 (patch)
treeae954f753da05be9d9eaab14c3a3c966788dcb51 /Tests
parent82a1ebbc0f0a570b28d5ede8243733c20971564c (diff)
downloadsymfony-security-1b109f6f25abd0db9ee20fc01f3b51b71d96bcb9.zip
symfony-security-1b109f6f25abd0db9ee20fc01f3b51b71d96bcb9.tar.gz
symfony-security-1b109f6f25abd0db9ee20fc01f3b51b71d96bcb9.tar.bz2
Fix merge, removing legacy TranslationSyncStatusTest
Diffstat (limited to 'Tests')
-rw-r--r--Tests/TranslationSyncStatusTest.php63
1 files changed, 0 insertions, 63 deletions
diff --git a/Tests/TranslationSyncStatusTest.php b/Tests/TranslationSyncStatusTest.php
deleted file mode 100644
index 4b72d41..0000000
--- a/Tests/TranslationSyncStatusTest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Tests;
-
-use Symfony\Component\Finder\Finder;
-
-class TranslationSyncStatusTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @dataProvider getTranslationDirectoriesData
- */
- public function testTranslationFileIsNotMissingInCore($dir1, $dir2)
- {
- $finder = new Finder();
- $files = $finder->in($dir1)->files();
-
- foreach ($files as $file) {
- $this->assertFileExists($dir2.'/'.$file->getFilename(), 'Missing file '.$file->getFilename().' in directory '.$dir2);
- }
- }
-
- public function getTranslationDirectoriesData()
- {
- $legacyTranslationsDir = $this->getLegacyTranslationsDirectory();
- $coreTranslationsDir = $this->getCoreTranslationsDirectory();
-
- return array(
- 'file-not-missing-in-core' => array($legacyTranslationsDir, $coreTranslationsDir),
- 'file-not-added-in-core' => array($coreTranslationsDir, $legacyTranslationsDir),
- );
- }
-
- public function testFileContentsAreEqual()
- {
- $finder = new Finder();
- $files = $finder->in($this->getLegacyTranslationsDirectory())->files();
-
- foreach ($files as $file) {
- $coreFile = $this->getCoreTranslationsDirectory().'/'.$file->getFilename();
-
- $this->assertFileEquals($file->getRealPath(), $coreFile, $file.' and '.$coreFile.' have equal content.');
- }
- }
-
- private function getLegacyTranslationsDirectory()
- {
- return __DIR__.'/../Resources/translations';
- }
-
- private function getCoreTranslationsDirectory()
- {
- return __DIR__.'/../Core/Resources/translations';
- }
-}