QurlsControllerTest.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. App::uses('QurlsController', 'ToolsExtra.Controller');
  3. App::uses('MyCakeTestCase', 'Tools.TestSuite');
  4. /**
  5. * QurlsController Test Case
  6. *
  7. */
  8. class QurlsControllerTest extends MyCakeTestCase {
  9. public $Qurls;
  10. /**
  11. * Fixtures
  12. *
  13. * @var array
  14. */
  15. public $fixtures = ['plugin.tools.qurl', 'core.auth_user'];
  16. /**
  17. * SetUp method
  18. *
  19. * @return void
  20. */
  21. public function setUp() {
  22. parent::setUp();
  23. $this->Qurls = new QurlsController();
  24. }
  25. /**
  26. * TearDown method
  27. *
  28. * @return void
  29. */
  30. public function tearDown() {
  31. unset($this->Qurls);
  32. parent::tearDown();
  33. }
  34. /**
  35. * TestIndex method
  36. *
  37. * @return void
  38. */
  39. public function testIndex() {
  40. }
  41. /**
  42. * TestView method
  43. *
  44. * @return void
  45. */
  46. public function testView() {
  47. }
  48. /**
  49. * TestAdd method
  50. *
  51. * @return void
  52. */
  53. public function testAdd() {
  54. }
  55. /**
  56. * TestEdit method
  57. *
  58. * @return void
  59. */
  60. public function testEdit() {
  61. }
  62. /**
  63. * TestDelete method
  64. *
  65. * @return void
  66. */
  67. public function testDelete() {
  68. }
  69. /**
  70. * TestAdminIndex method
  71. *
  72. * @return void
  73. */
  74. public function testAdminIndex() {
  75. }
  76. /**
  77. * TestAdminView method
  78. *
  79. * @return void
  80. */
  81. public function testAdminView() {
  82. }
  83. /**
  84. * TestAdminAdd method
  85. *
  86. * @return void
  87. */
  88. public function testAdminAdd() {
  89. }
  90. /**
  91. * TestAdminEdit method
  92. *
  93. * @return void
  94. */
  95. public function testAdminEdit() {
  96. }
  97. /**
  98. * TestAdminDelete method
  99. *
  100. * @return void
  101. */
  102. public function testAdminDelete() {
  103. }
  104. }
  105. /**
  106. * TestQurlsController
  107. *
  108. */
  109. class TestQurlsController extends QurlsController {
  110. /**
  111. * Auto render
  112. *
  113. * @var bool
  114. */
  115. public $autoRender = false;
  116. /**
  117. * Redirect action
  118. *
  119. * @param mixed $url
  120. * @param mixed $status
  121. * @param bool $exit
  122. * @return void
  123. */
  124. public function redirect($url, $status = null, $exit = true) {
  125. $this->redirectUrl = $url;
  126. }
  127. }