vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle/Tests/Common/DataFixtures/LoaderTest.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/bundles/Symfony/Bundle/DoctrineFixturesBundle/Tests/Common/DataFixtures/LoaderTest.php Wed Dec 14 23:28:58 2011 +0100
@@ -0,0 +1,21 @@
+<?php
+
+namespace Symfony\Bundle\DoctrineFixturesBundle\Tests\Common\DataFixtures;
+
+use Symfony\Bundle\DoctrineFixturesBundle\Tests\TestCase;
+use Symfony\Bundle\DoctrineFixturesBundle\Tests\Common\ContainerAwareFixture;
+use Symfony\Bundle\DoctrineFixturesBundle\Common\DataFixtures\Loader;
+
+class LoaderTest extends TestCase
+{
+ public function testShouldSetContainerOnContainerAwareFixture()
+ {
+ $container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
+ $loader = new Loader($container);
+ $fixture = new ContainerAwareFixture();
+
+ $loader->addFixture($fixture);
+
+ $this->assertSame($container, $fixture->container);
+ }
+}