mirror of https://github.com/MISP/MISP
143 lines
1.8 KiB
PHP
143 lines
1.8 KiB
PHP
<?php
|
|
App::uses('UsersController', 'Controller');
|
|
|
|
/**
|
|
* TestUsersController *
|
|
*/
|
|
class TestUsersController extends UsersController {
|
|
/**
|
|
* Auto render
|
|
*
|
|
* @var boolean
|
|
*/
|
|
public $autoRender = false;
|
|
|
|
/**
|
|
* Redirect action
|
|
*
|
|
* @param mixed $url
|
|
* @param mixed $status
|
|
* @param boolean $exit
|
|
* @return void
|
|
*/
|
|
public function redirect($url, $status = null, $exit = true) {
|
|
$this->redirectUrl = $url;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* UsersController Test Case
|
|
*
|
|
*/
|
|
class UsersControllerTestCase extends CakeTestCase {
|
|
/**
|
|
* Fixtures
|
|
*
|
|
* @var array
|
|
*/
|
|
public $fixtures = array('app.user', 'app.group', 'app.event', 'app.signature');
|
|
|
|
/**
|
|
* setUp method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setUp() {
|
|
parent::setUp();
|
|
$this->Users = new TestUsersController();
|
|
$this->Users->constructClasses();
|
|
}
|
|
|
|
/**
|
|
* tearDown method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function tearDown() {
|
|
unset($this->Users);
|
|
|
|
parent::tearDown();
|
|
}
|
|
|
|
/**
|
|
* testIndex method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testIndex() {
|
|
|
|
}
|
|
/**
|
|
* testView method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testView() {
|
|
|
|
}
|
|
/**
|
|
* testAdd method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testAdd() {
|
|
|
|
}
|
|
/**
|
|
* testEdit method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testEdit() {
|
|
|
|
}
|
|
/**
|
|
* testDelete method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testDelete() {
|
|
|
|
}
|
|
/**
|
|
* testAdminIndex method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testAdminIndex() {
|
|
|
|
}
|
|
/**
|
|
* testAdminView method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testAdminView() {
|
|
|
|
}
|
|
/**
|
|
* testAdminAdd method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testAdminAdd() {
|
|
|
|
}
|
|
/**
|
|
* testAdminEdit method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testAdminEdit() {
|
|
|
|
}
|
|
/**
|
|
* testAdminDelete method
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testAdminDelete() {
|
|
|
|
}
|
|
}
|