Browse Source

Fixed failing test

Jose Lorenzo Rodriguez 12 years ago
parent
commit
203ae31075

+ 1 - 1
tests/TestCase/Controller/Component/RequestHandlerComponentTest.php

@@ -625,7 +625,7 @@ class RequestHandlerComponentTest extends TestCase {
  * @return void
  */
 	public function testMobileDeviceDetection() {
-		$request = $this->getMock('Cake\Network\Request', ['mobile']);
+		$request = $this->getMock('Cake\Network\Request', ['is']);
 		$request->expects($this->once())->method('is')
 			->with('mobile')
 			->will($this->returnValue(true));