Skip to content

Commit

Permalink
[DoctrineMongoDBBundle] fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 1, 2011
1 parent cb445b9 commit 2889e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<exclude>
<directory>./src/Symfony/Bundle/*/Resources</directory>
<directory>./src/Symfony/Component/*/Resources</directory>
<file>./src/Symfony/Component/HttpKernel/bootstrap.php</file>
<file>./src/Symfony/Component/HttpKernel/bootstrap*</file>
</exclude>
</whitelist>
</filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function testDependencyInjectionConfigurationDefaults()
$this->assertEquals('Doctrine\ODM\MongoDB\Mapping\Driver\XmlDriver', $container->getParameter('doctrine.odm.mongodb.metadata.xml_class'));
$this->assertEquals('Doctrine\ODM\MongoDB\Mapping\Driver\YamlDriver', $container->getParameter('doctrine.odm.mongodb.metadata.yml_class'));

$this->assertEquals('Symfony\Bundle\DoctrineMongoDBBundle\Validator\Constraints\DoctrineMongoDBUniqueValidator', $container->getParameter('doctrine_odm.mongodb.validator.unique.class'));
$this->assertEquals('Symfony\Bundle\DoctrineMongoDBBundle\Validator\Constraints\UniqueValidator', $container->getParameter('doctrine_odm.mongodb.validator.unique.class'));

$config = array(
'proxy_namespace' => 'MyProxies',
Expand Down Expand Up @@ -334,7 +334,7 @@ public function testRegistersValidatorNamespace()
$this->assertEquals(array(
'Namespace1\\',
'Namespace2\\',
'Symfony\Bundle\DoctrineMongoDBBundle\Validator\Constraints\\'
'mongodb' => 'Symfony\Bundle\DoctrineMongoDBBundle\Validator\Constraints\\',
), $container->getParameter('validator.annotations.namespaces'));
}

Expand Down

0 comments on commit 2889e91

Please sign in to comment.