From cd547fecea547cd3a60e2bd50c2ce7f8994548af Mon Sep 17 00:00:00 2001 From: encoder64 Date: Sat, 6 Sep 2014 18:29:14 +0300 Subject: [PATCH] Corrected names to DDC3231 --- .../DDC1089/DDC1089EntityRepository.php | 7 --- .../Tests/Models/DDC1089/DDC1089User2.php | 57 ------------------- .../DDC3231/DDC3231EntityRepository.php | 7 +++ .../DDC3231User.php} | 6 +- .../Tests/Models/DDC3231/DDC3231User2.php | 23 ++++++++ .../Tools/EntityRepositoryGeneratorTest.php | 14 ++--- 6 files changed, 40 insertions(+), 74 deletions(-) delete mode 100644 tests/Doctrine/Tests/Models/DDC1089/DDC1089EntityRepository.php delete mode 100644 tests/Doctrine/Tests/Models/DDC1089/DDC1089User2.php create mode 100644 tests/Doctrine/Tests/Models/DDC3231/DDC3231EntityRepository.php rename tests/Doctrine/Tests/Models/{DDC1089/DDC1089User.php => DDC3231/DDC3231User.php} (68%) create mode 100644 tests/Doctrine/Tests/Models/DDC3231/DDC3231User2.php diff --git a/tests/Doctrine/Tests/Models/DDC1089/DDC1089EntityRepository.php b/tests/Doctrine/Tests/Models/DDC1089/DDC1089EntityRepository.php deleted file mode 100644 index 143b8df60..000000000 --- a/tests/Doctrine/Tests/Models/DDC1089/DDC1089EntityRepository.php +++ /dev/null @@ -1,7 +0,0 @@ -id; - } - - /** - * Set name - * - * @param string $name - * - * @return DDC1089User - */ - public function setName($name) - { - $this->name = $name; - - return $this; - } - - /** - * Get name - * - * @return string - */ - public function getName() - { - return $this->name; - } - -} diff --git a/tests/Doctrine/Tests/Models/DDC3231/DDC3231EntityRepository.php b/tests/Doctrine/Tests/Models/DDC3231/DDC3231EntityRepository.php new file mode 100644 index 000000000..91ca8453c --- /dev/null +++ b/tests/Doctrine/Tests/Models/DDC3231/DDC3231EntityRepository.php @@ -0,0 +1,7 @@ +_getTestEntityManager(); $ns = $this->_namespace; - $className = 'DDC1089User'; - $this->writeEntityClass('Doctrine\Tests\Models\DDC1089\\' . $className, $ns . '\\' . $className); + $className = 'DDC3231User'; + $this->writeEntityClass('Doctrine\Tests\Models\DDC3231\\' . $className, $ns . '\\' . $className); - $rpath = $this->writeRepositoryClass($ns . '\\' . $className, 'Doctrine\Tests\Models\DDC1089\DDC1089EntityRepository'); + $rpath = $this->writeRepositoryClass($ns . '\\' . $className, 'Doctrine\Tests\Models\DDC3231\DDC3231EntityRepository'); $this->assertNotNull($rpath); $this->assertFileExists($rpath); @@ -77,11 +77,11 @@ class EntityRepositoryGeneratorTest extends \Doctrine\Tests\OrmTestCase $repo = new \ReflectionClass($em->getRepository($ns . '\\' . $className)); $this->assertSame($ns . '\\' . $className . 'Repository', $repo->getName()); - $this->assertSame('Doctrine\Tests\Models\DDC1089\DDC1089EntityRepository', $repo->getParentClass()->getName()); + $this->assertSame('Doctrine\Tests\Models\DDC3231\DDC3231EntityRepository', $repo->getParentClass()->getName()); - $className2 = 'DDC1089User2'; - $this->writeEntityClass('Doctrine\Tests\Models\DDC1089\\' . $className2, $ns . '\\' . $className2); + $className2 = 'DDC3231User2'; + $this->writeEntityClass('Doctrine\Tests\Models\DDC3231\\' . $className2, $ns . '\\' . $className2); $rpath2 = $this->writeRepositoryClass($ns . '\\' . $className2);