Skip to content
Browse files

Update composer.json and fix tests

  • Loading branch information...
1 parent 643c9db commit 7871f6838a3b151f8956d31dfe8d84f1c1e04226 @beberlei beberlei committed Mar 4, 2012
Showing with 7 additions and 7 deletions.
  1. +5 −4 Tests/BundleTest.php
  2. +2 −3 composer.json
View
9 Tests/BundleTest.php
@@ -28,15 +28,16 @@ class BundleTest extends TestCase
public function testRegisterCompilerPasses()
{
$bundle = new DoctrineCouchDBBundle();
- $builder = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder');
-
- $builder->expects($this->at(0))
+ $builder = $this->getMock('Symfony\Component\DependencyInjection\ContainerBuilder', array('hasExtension', 'addCompilerPass'));
+ $builder->expects($this->at(0))->method('hasExtension')->will($this->returnValue(false));
+
+ $builder->expects($this->at(1))
->method('addCompilerPass')
->with(
$this->isInstanceOf('Doctrine\Bundle\CouchDBBundle\DependencyInjection\Compiler\RegisterEventListenersAndSubscribersPass'),
$this->equalTo(PassConfig::TYPE_BEFORE_OPTIMIZATION)
);
- $builder->expects($this->at(1))
+ $builder->expects($this->at(2))
->method('addCompilerPass')
->with(
$this->isInstanceOf('Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass\DoctrineValidationPass'),
View
5 composer.json
@@ -11,9 +11,8 @@
],
"require": {
"php": ">=5.3.2",
- "doctrine/couchdb-odm": ">=2.0",
- "symfony/symfony": "2.1.*",
- "symfony/doctrine-bridge": "2.1.*"
+ "doctrine/couchdb-odm": "*",
+ "symfony/symfony": "2.1.*"
},
"autoload": {
"psr-0": { "Doctrine\\Bundle\\DoctrineCouchDBBundle": "" }

0 comments on commit 7871f68

Please sign in to comment.
Something went wrong with that request. Please try again.