IconsControllerTest.php 654 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Tools\Test\TestCase\Controller\Admin;
  3. use Cake\Core\Configure;
  4. use Cake\TestSuite\IntegrationTestTrait;
  5. use Shim\TestSuite\TestCase;
  6. use Tools\View\Icon\BootstrapIcon;
  7. /**
  8. * @uses \Tools\Controller\Admin\IconsController
  9. */
  10. class IconsControllerTest extends TestCase {
  11. use IntegrationTestTrait;
  12. /**
  13. * @return void
  14. */
  15. public function testIcons() {
  16. $this->disableErrorHandlerMiddleware();
  17. Configure::write('Icon', [
  18. 'sets' => [
  19. 'bs' => BootstrapIcon::class,
  20. ],
  21. ]);
  22. $this->get(['prefix' => 'Admin', 'plugin' => 'Tools', 'controller' => 'Icons', 'action' => 'index']);
  23. $this->assertResponseCode(200);
  24. }
  25. }