not used to plugin testing - trying to get working but fixtures not working yet
This commit is contained in:
20
tests/test_app/src/Application.php
Normal file
20
tests/test_app/src/Application.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp;
|
||||
|
||||
use Cake\Http\BaseApplication;
|
||||
use Cake\Http\MiddlewareQueue;
|
||||
use Cake\Routing\Middleware\RoutingMiddleware;
|
||||
|
||||
class Application extends BaseApplication {
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function middleware(MiddlewareQueue $middleware): MiddlewareQueue {
|
||||
$middleware->add(new RoutingMiddleware($this));
|
||||
|
||||
return $middleware;
|
||||
}
|
||||
|
||||
}
|
||||
8
tests/test_app/src/Controller/AppController.php
Normal file
8
tests/test_app/src/Controller/AppController.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp\Controller;
|
||||
|
||||
use Cake\Controller\Controller;
|
||||
|
||||
class AppController extends Controller {
|
||||
}
|
||||
11
tests/test_app/src/View/AppView.php
Normal file
11
tests/test_app/src/View/AppView.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace TestApp\View;
|
||||
|
||||
use Cake\View\View;
|
||||
|
||||
/**
|
||||
* @property \TinyAuth\View\Helper\AuthUserHelper $AuthUser
|
||||
*/
|
||||
class AppView extends View {
|
||||
}
|
||||
Reference in New Issue
Block a user