OCP\AppFramework\Controller\Controller => OCP\AppFramework\Controller
This commit is contained in:
parent
053b55721d
commit
d75d80ba13
|
@ -25,7 +25,7 @@
|
||||||
namespace OC\AppFramework\Http;
|
namespace OC\AppFramework\Http;
|
||||||
|
|
||||||
use \OC\AppFramework\Middleware\MiddlewareDispatcher;
|
use \OC\AppFramework\Middleware\MiddlewareDispatcher;
|
||||||
use OCP\AppFramework\Controller\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
namespace OC\AppFramework\Middleware;
|
namespace OC\AppFramework\Middleware;
|
||||||
|
|
||||||
use OCP\AppFramework\Controller\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\Response;
|
use OCP\AppFramework\Http\Response;
|
||||||
use OCP\AppFramework\MiddleWare;
|
use OCP\AppFramework\MiddleWare;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
namespace OCP\AppFramework\Controller;
|
namespace OCP\AppFramework;
|
||||||
|
|
||||||
use OCP\AppFramework\Http\TemplateResponse;
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
use OCP\AppFramework\IAppContainer;
|
use OCP\AppFramework\IAppContainer;
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
namespace OCP\AppFramework;
|
namespace OCP\AppFramework;
|
||||||
|
|
||||||
use OCP\AppFramework\Controller\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\Response;
|
use OCP\AppFramework\Http\Response;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ class AppTest extends \PHPUnit_Framework_TestCase {
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->container = new \OC\AppFramework\DependencyInjection\DIContainer('test');
|
$this->container = new \OC\AppFramework\DependencyInjection\DIContainer('test');
|
||||||
$this->controller = $this->getMockBuilder(
|
$this->controller = $this->getMockBuilder(
|
||||||
'OCP\AppFramework\Controller\Controller')
|
'OCP\AppFramework\Controller')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$this->dispatcher = $this->getMockBuilder(
|
$this->dispatcher = $this->getMockBuilder(
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
namespace Test\AppFramework\Controller;
|
namespace Test\AppFramework\Controller;
|
||||||
|
|
||||||
use OC\AppFramework\Http\Request;
|
use OC\AppFramework\Http\Request;
|
||||||
use OCP\AppFramework\Controller\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\TemplateResponse;
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ class DispatcherTest extends \PHPUnit_Framework_TestCase {
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$this->controller = $this->getMock(
|
$this->controller = $this->getMock(
|
||||||
'\OCP\AppFramework\Controller\Controller',
|
'\OCP\AppFramework\Controller',
|
||||||
array($this->controllerMethod), array($app, $request));
|
array($this->controllerMethod), array($app, $request));
|
||||||
|
|
||||||
$this->dispatcher = new Dispatcher(
|
$this->dispatcher = new Dispatcher(
|
||||||
|
|
|
@ -128,7 +128,7 @@ class MiddlewareDispatcherTest extends \PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
|
|
||||||
private function getControllerMock(){
|
private function getControllerMock(){
|
||||||
return $this->getMock('OCP\AppFramework\Controller\Controller', array('method'),
|
return $this->getMock('OCP\AppFramework\Controller', array('method'),
|
||||||
array($this->getAPIMock(), new Request()));
|
array($this->getAPIMock(), new Request()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ class MiddlewareTest extends \PHPUnit_Framework_TestCase {
|
||||||
$this->api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
|
$this->api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer',
|
||||||
array(), array('test'));
|
array(), array('test'));
|
||||||
|
|
||||||
$this->controller = $this->getMock('OCP\AppFramework\Controller\Controller',
|
$this->controller = $this->getMock('OCP\AppFramework\Controller',
|
||||||
array(), array($this->api, new Request()));
|
array(), array($this->api, new Request()));
|
||||||
$this->exception = new \Exception();
|
$this->exception = new \Exception();
|
||||||
$this->response = $this->getMock('OCP\AppFramework\Http\Response');
|
$this->response = $this->getMock('OCP\AppFramework\Http\Response');
|
||||||
|
|
|
@ -40,7 +40,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
$api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer', array(), array('test'));
|
$api = $this->getMock('OC\AppFramework\DependencyInjection\DIContainer', array(), array('test'));
|
||||||
$this->controller = $this->getMock('OCP\AppFramework\Controller\Controller',
|
$this->controller = $this->getMock('OCP\AppFramework\Controller',
|
||||||
array(), array($api, new Request()));
|
array(), array($api, new Request()));
|
||||||
|
|
||||||
$this->request = new Request();
|
$this->request = new Request();
|
||||||
|
@ -302,7 +302,7 @@ class SecurityMiddlewareTest extends \PHPUnit_Framework_TestCase {
|
||||||
$api->expects($this->once())->method('getServer')
|
$api->expects($this->once())->method('getServer')
|
||||||
->will($this->returnValue($serverMock));
|
->will($this->returnValue($serverMock));
|
||||||
|
|
||||||
$this->controller = $this->getMock('OCP\AppFramework\Controller\Controller',
|
$this->controller = $this->getMock('OCP\AppFramework\Controller',
|
||||||
array(), array($api, new Request()));
|
array(), array($api, new Request()));
|
||||||
|
|
||||||
$this->request = new Request(
|
$this->request = new Request(
|
||||||
|
|
Loading…
Reference in New Issue