Skip to content

Commit 5060fa4

Browse files
committed
Move the test file to a better location
The test of the DI extension is not a functional test.
1 parent b4c01f3 commit 5060fa4

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
<?php
22

3-
4-
namespace FOS\ElasticaBundle\Tests\Functional\DependencyInjection;
5-
3+
namespace FOS\ElasticaBundle\Tests\DependencyInjection;
64

75
use FOS\ElasticaBundle\DependencyInjection\FOSElasticaExtension;
86
use Symfony\Component\DependencyInjection\ContainerBuilder;
97
use Symfony\Component\Yaml\Yaml;
108

119
class FOSElasticaExtensionTest extends \PHPUnit_Framework_TestCase
1210
{
13-
14-
/**
15-
* @test
16-
*/
17-
public function shouldAddParentParamToObjectPersisterCall()
11+
public function testShouldAddParentParamToObjectPersisterCall()
1812
{
19-
20-
$config = Yaml::parse(file_get_contents(__DIR__.'/config/config.yml'));
13+
$config = Yaml::parse(file_get_contents(__DIR__.'/fixtures/config.yml'));
2114

2215
$containerBuilder = new ContainerBuilder;
2316
$containerBuilder->setParameter('kernel.debug', true);
@@ -36,5 +29,4 @@ public function shouldAddParentParamToObjectPersisterCall()
3629
$this->assertArrayHasKey('_parent', $arguments);
3730
$this->assertEquals('parent_field', $arguments['_parent']['type']);
3831
}
39-
40-
}
32+
}

0 commit comments

Comments
 (0)