소스 검색

Fixed vendor version mismatch in tests

Arnout Boks 13 년 전
부모
커밋
4fe4dfd116
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      tests/Symfony/Tests/Bridge/Doctrine/DataCollector/DoctrineDataCollectorTest.php

+ 4 - 4
tests/Symfony/Tests/Bridge/Doctrine/DataCollector/DoctrineDataCollectorTest.php

@@ -113,14 +113,14 @@ class DoctrineDataCollectorTest extends \PHPUnit_Framework_TestCase
 
     private function createCollector($queries)
     {
-        $registry = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry');
+        $registry = $this->getMock('Symfony\Bridge\Doctrine\RegistryInterface');
         $registry
-                ->expects($this->once())
+                ->expects($this->any())
                 ->method('getConnectionNames')
                 ->will($this->returnValue(array('default' => 'doctrine.dbal.default_connection')));
         $registry
-                ->expects($this->once())
-                ->method('getManagerNames')
+                ->expects($this->any())
+                ->method('getEntityManagerNames')
                 ->will($this->returnValue(array('default' => 'doctrine.orm.default_entity_manager')));
 
         $logger = $this->getMock('Symfony\Bridge\Doctrine\Logger\DbalLogger');