Skip to content

Commit

Permalink
#6613 #6614 CS - applying @group annotation to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Aug 11, 2017
1 parent 5c5c8fc commit 693a054
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC6613Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,21 @@

namespace Doctrine\Tests\ORM\Functional\Ticket;


use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Embeddable;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\ManyToOne;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\PersistentCollection;
use Doctrine\ORM\Proxy\Proxy;
use Doctrine\Tests\Models\DDC6613\Phone;
use Doctrine\Tests\Models\DDC6613\User;
use Doctrine\Tests\OrmFunctionalTestCase;


class DDC6613Test extends \Doctrine\Tests\OrmFunctionalTestCase
/**
* @group #6613
* @group #6614
*/
class DDC6613Test extends OrmFunctionalTestCase
{

public function setUp()
{
parent::setUp();
Expand All @@ -33,7 +31,7 @@ public function setUp()
$this->setUpEntitySchema(
[
DDC6613Phone::class,
DDC6613User::class
DDC6613User::class,
]
);
} catch (SchemaException $e) {
Expand All @@ -49,7 +47,7 @@ public function testFail()
$this->_em->clear();

/** @var User $user */
$user = $this->_em->find(User::class, 1);
$user = $this->_em->find(User::class, 1);
$phone1 = new DDC6613Phone();
$phones = $user->phones;
$user->phones->add($phone1);
Expand Down Expand Up @@ -77,7 +75,6 @@ public function testFail()
self::assertTrue($phones->isInitialized());
self::assertCount(2, $user->phones);
}

}

/**
Expand All @@ -103,16 +100,13 @@ public function __construct()
$this->id = uniqid('user', true);
$this->phones = new ArrayCollection();
}


}

/**
* @Table(name="ddc6613_phone")
*/
class DDC6613Phone
{

/**
* @Id
* @GeneratedValue(strategy="NONE")
Expand Down

0 comments on commit 693a054

Please sign in to comment.