Ver Fonte

Changed test names to fit test filename pattern set in phpunit.xml.dist

- files with name like "...Test2.php" and "...Test3.php" were not
  included in test suite
- removed Issue104Right.php as identical to Issue104Test.php
Illya Klymov há 13 anos atrás
pai
commit
41c93aa9cd

+ 0 - 51
tests/Gedmo/Sluggable/Issue/Issue104Right.php

@@ -1,51 +0,0 @@
-<?php
-
-namespace Gedmo\Sluggable;
-
-use Doctrine\Common\EventManager;
-use Tool\BaseTestCaseORM;
-use Sluggable\Fixture\Issue104\Icarus;
-
-/**
- * These are tests for Sluggable behavior
- *
- * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
- * @package Gedmo.Sluggable
- * @link http://www.gediminasm.org
- * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
- */
-class Issue104RightTest extends BaseTestCaseORM
-{
-    const ICARUS = 'Sluggable\\Fixture\\Issue104\\Icarus';
-
-    protected function setUp()
-    {
-        parent::setUp();
-    }
-
-    /**
-     * @test
-     */
-    public function shouldMapMappedSuperclassPrivateInheritedProperty()
-    {
-        $evm = new EventManager;
-        $evm->addEventSubscriber(new SluggableListener);
-        $this->getMockSqliteEntityManager($evm);
-
-        $audi = new Icarus;
-        $audi->setDescription('audi car');
-        $audi->setTitle('Audi');
-
-        $this->em->persist($audi);
-        $this->em->flush();
-
-        $this->assertEquals('audi', $audi->getSlug());
-    }
-
-    protected function getUsedEntityFixtures()
-    {
-        return array(
-            self::ICARUS
-        );
-    }
-}

+ 1 - 1
tests/Gedmo/Tree/MultiInheritanceTest2.php

@@ -16,7 +16,7 @@ use Doctrine\Common\Util\Debug;
  * @link http://www.gediminasm.org
  * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  */
-class MultiInheritanceTest2 extends BaseTestCaseORM
+class MultiInheritanceWithJoinedTableTest extends BaseTestCaseORM
 {
     const USER = "Tree\\Fixture\\User";
     const GROUP = "Tree\\Fixture\\UserGroup";

+ 1 - 1
tests/Gedmo/Tree/MultiInheritanceTest3.php

@@ -18,7 +18,7 @@ use Tree\Fixture\Transport\Engine;
  * @link http://www.gediminasm.org
  * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  */
-class MultiInheritanceTest3 extends BaseTestCaseORM
+class MultiInheritanceWithSingleTableTest extends BaseTestCaseORM
 {
     const CAR = "Tree\Fixture\Transport\Car";
     const BUS = "Tree\Fixture\Transport\Bus";