Move the test file to a better location

The test of the DI extension is not a functional test.
This commit is contained in:
Christophe Coevoet 2015-01-21 17:51:56 +01:00
parent b4c01f3641
commit 5060fa4d4a
2 changed files with 4 additions and 12 deletions

View file

@ -1,8 +1,6 @@
<?php <?php
namespace FOS\ElasticaBundle\Tests\DependencyInjection;
namespace FOS\ElasticaBundle\Tests\Functional\DependencyInjection;
use FOS\ElasticaBundle\DependencyInjection\FOSElasticaExtension; use FOS\ElasticaBundle\DependencyInjection\FOSElasticaExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
@ -10,14 +8,9 @@ use Symfony\Component\Yaml\Yaml;
class FOSElasticaExtensionTest extends \PHPUnit_Framework_TestCase class FOSElasticaExtensionTest extends \PHPUnit_Framework_TestCase
{ {
public function testShouldAddParentParamToObjectPersisterCall()
/**
* @test
*/
public function shouldAddParentParamToObjectPersisterCall()
{ {
$config = Yaml::parse(file_get_contents(__DIR__.'/fixtures/config.yml'));
$config = Yaml::parse(file_get_contents(__DIR__.'/config/config.yml'));
$containerBuilder = new ContainerBuilder; $containerBuilder = new ContainerBuilder;
$containerBuilder->setParameter('kernel.debug', true); $containerBuilder->setParameter('kernel.debug', true);
@ -36,5 +29,4 @@ class FOSElasticaExtensionTest extends \PHPUnit_Framework_TestCase
$this->assertArrayHasKey('_parent', $arguments); $this->assertArrayHasKey('_parent', $arguments);
$this->assertEquals('parent_field', $arguments['_parent']['type']); $this->assertEquals('parent_field', $arguments['_parent']['type']);
} }
}
}