瀏覽代碼

Fix tests

Jordi Boggiano 9 年之前
父節點
當前提交
e745b37935
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tests/Composer/Test/IO/ConsoleIOTest.php

+ 3 - 0
tests/Composer/Test/IO/ConsoleIOTest.php

@@ -229,6 +229,9 @@ class ConsoleIOTest extends TestCase
         $dialogMock = $this->getMock('Symfony\Component\Console\Helper\DialogHelper');
         $dialogMock = $this->getMock('Symfony\Component\Console\Helper\DialogHelper');
         $helperMock = $this->getMock('Symfony\Component\Console\Helper\HelperSet');
         $helperMock = $this->getMock('Symfony\Component\Console\Helper\HelperSet');
 
 
+        $inputMock->expects($this->once())
+            ->method('isInteractive')
+            ->will($this->returnValue(true));
         $dialogMock->expects($this->once())
         $dialogMock->expects($this->once())
             ->method('select')
             ->method('select')
             ->with($this->isInstanceOf('Symfony\Component\Console\Output\OutputInterface'),
             ->with($this->isInstanceOf('Symfony\Component\Console\Output\OutputInterface'),