IconsControllerTest.php 708 B

1234567891011121314151617181920212223242526272829303132
  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\Controller\Admin\IconsController;
  7. use Tools\View\Icon\BootstrapIcon;
  8. #[\PHPUnit\Framework\Attributes\UsesClass(IconsController::class)]
  9. class IconsControllerTest extends TestCase {
  10. use IntegrationTestTrait;
  11. /**
  12. * @return void
  13. */
  14. public function testIcons() {
  15. $this->disableErrorHandlerMiddleware();
  16. Configure::write('Icon', [
  17. 'sets' => [
  18. 'bs' => BootstrapIcon::class,
  19. ],
  20. ]);
  21. $this->get(['prefix' => 'Admin', 'plugin' => 'Tools', 'controller' => 'Icons', 'action' => 'index']);
  22. $this->assertResponseCode(200);
  23. }
  24. }