Skip to content

Commit e796d61

Browse files
committed
Elastica, Doctrine\Common and Doctrine\ORM are required for tests
1 parent dd388e4 commit e796d61

9 files changed

+0
-57
lines changed

Tests/Doctrine/AbstractElasticaToModelTransformerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ public function testIgnoreMissingOptionDuringTransformHybrid()
5555

5656
protected function setUp()
5757
{
58-
if (!interface_exists('Doctrine\Common\Persistence\ManagerRegistry')) {
59-
$this->markTestSkipped('Doctrine Common is not present');
60-
}
61-
6258
$this->registry = $this->getMockBuilder('Doctrine\Common\Persistence\ManagerRegistry')
6359
->disableOriginalConstructor()
6460
->getMock();

Tests/Doctrine/AbstractProviderTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ class AbstractProviderTest extends \PHPUnit_Framework_TestCase
1616

1717
public function setUp()
1818
{
19-
if (!interface_exists('Doctrine\Common\Persistence\ManagerRegistry')) {
20-
$this->markTestSkipped('Doctrine Common is not available.');
21-
}
22-
2319
$this->objectClass = 'objectClass';
2420
$this->options = array('debug_logging' => true, 'indexName' => 'index', 'typeName' => 'type');
2521

Tests/Doctrine/ORM/ElasticaToModelTransformerTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ public function testTransformUsesDefaultQueryBuilderMethodConfiguration()
8282

8383
protected function setUp()
8484
{
85-
if (!interface_exists('Doctrine\Common\Persistence\ManagerRegistry')) {
86-
$this->markTestSkipped('Doctrine Common is not present');
87-
}
88-
if (!class_exists('Doctrine\ORM\EntityManager')) {
89-
$this->markTestSkipped('Doctrine Common is not present');
90-
}
91-
9285
$this->registry = $this->getMockBuilder('Doctrine\Common\Persistence\ManagerRegistry')
9386
->disableOriginalConstructor()
9487
->getMock();

Tests/Doctrine/ORM/ListenerTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66

77
class ListenerTest extends BaseListenerTest
88
{
9-
public function setUp()
10-
{
11-
if (!class_exists('Doctrine\ORM\EntityManager')) {
12-
$this->markTestSkipped('Doctrine ORM is not available.');
13-
}
14-
}
15-
169
protected function getClassMetadataClass()
1710
{
1811
return 'Doctrine\ORM\Mapping\ClassMetadata';

Tests/Doctrine/RepositoryManagerTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ class Entity
1717
*/
1818
class RepositoryManagerTest extends \PHPUnit_Framework_TestCase
1919
{
20-
public function setUp()
21-
{
22-
if (!interface_exists('Doctrine\Common\Persistence\ManagerRegistry')) {
23-
$this->markTestSkipped('Doctrine Common is not available.');
24-
}
25-
}
26-
2720
public function testThatGetRepositoryReturnsDefaultRepository()
2821
{
2922
/** @var $finderMock \PHPUnit_Framework_MockObject_MockObject|\FOS\ElasticaBundle\Finder\TransformedFinder */

Tests/Persister/ObjectPersisterTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ public function transformToElasticaDocument($object)
3131

3232
class ObjectPersisterTest extends \PHPUnit_Framework_TestCase
3333
{
34-
public function setUp()
35-
{
36-
if (!class_exists('Elastica\Type')) {
37-
$this->markTestSkipped('The Elastica library classes are not available');
38-
}
39-
}
40-
4134
public function testThatCanReplaceObject()
4235
{
4336
$transformer = $this->getTransformer();

Tests/Persister/ObjectSerializerPersisterTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ public function getName()
2424

2525
class ObjectSerializerPersisterTest extends \PHPUnit_Framework_TestCase
2626
{
27-
public function setUp()
28-
{
29-
if (!class_exists('Elastica\Type')) {
30-
$this->markTestSkipped('The Elastica library classes are not available');
31-
}
32-
}
33-
3427
public function testThatCanReplaceObject()
3528
{
3629
$transformer = $this->getTransformer();

Tests/Transformer/ModelToElasticaAutoTransformerTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,6 @@ public function getUpperAlias()
125125

126126
class ModelToElasticaAutoTransformerTest extends \PHPUnit_Framework_TestCase
127127
{
128-
public function setUp()
129-
{
130-
if (!class_exists('Elastica\Document')) {
131-
$this->markTestSkipped('The Elastica library classes are not available');
132-
}
133-
}
134-
135128
public function testThatCanTransformObject()
136129
{
137130
$transformer = $this->getTransformer();

Tests/Transformer/ModelToElasticaIdentifierTransformerTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ public function getName()
2323

2424
class ModelToElasticaIdentifierTransformerTest extends \PHPUnit_Framework_TestCase
2525
{
26-
public function setUp()
27-
{
28-
if (!class_exists('Elastica\Document')) {
29-
$this->markTestSkipped('The Elastica library classes are not available');
30-
}
31-
}
32-
3326
public function testGetDocumentWithIdentifierOnly()
3427
{
3528
$transformer = $this->getTransformer();

0 commit comments

Comments
 (0)