1
0
mirror of synced 2025-02-02 21:41:45 +03:00

#6613 #6614 CS - applying @group annotation to the test

This commit is contained in:
Marco Pivetta 2017-08-11 14:23:21 +02:00
parent 5c5c8fc487
commit 693a0546d3
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -8,23 +8,21 @@
namespace Doctrine\Tests\ORM\Functional\Ticket; namespace Doctrine\Tests\ORM\Functional\Ticket;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\DBAL\Schema\SchemaException; use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Embeddable;
use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\ManyToOne; use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\PersistentCollection; use Doctrine\ORM\PersistentCollection;
use Doctrine\ORM\Proxy\Proxy; use Doctrine\Tests\OrmFunctionalTestCase;
use Doctrine\Tests\Models\DDC6613\Phone;
use Doctrine\Tests\Models\DDC6613\User;
/**
class DDC6613Test extends \Doctrine\Tests\OrmFunctionalTestCase * @group #6613
* @group #6614
*/
class DDC6613Test extends OrmFunctionalTestCase
{ {
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();
@ -33,7 +31,7 @@ class DDC6613Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->setUpEntitySchema( $this->setUpEntitySchema(
[ [
DDC6613Phone::class, DDC6613Phone::class,
DDC6613User::class DDC6613User::class,
] ]
); );
} catch (SchemaException $e) { } catch (SchemaException $e) {
@ -77,7 +75,6 @@ class DDC6613Test extends \Doctrine\Tests\OrmFunctionalTestCase
self::assertTrue($phones->isInitialized()); self::assertTrue($phones->isInitialized());
self::assertCount(2, $user->phones); self::assertCount(2, $user->phones);
} }
} }
/** /**
@ -103,8 +100,6 @@ class DDC6613User
$this->id = uniqid('user', true); $this->id = uniqid('user', true);
$this->phones = new ArrayCollection(); $this->phones = new ArrayCollection();
} }
} }
/** /**
@ -112,7 +107,6 @@ class DDC6613User
*/ */
class DDC6613Phone class DDC6613Phone
{ {
/** /**
* @Id * @Id
* @GeneratedValue(strategy="NONE") * @GeneratedValue(strategy="NONE")