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);