| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace Tools\Test\TestCase\Controller\Admin;
- use Cake\Core\Configure;
- use Cake\TestSuite\IntegrationTestTrait;
- use Shim\TestSuite\TestCase;
- use Tools\Controller\Admin\IconsController;
- use Tools\View\Icon\BootstrapIcon;
- #[\PHPUnit\Framework\Attributes\UsesClass(IconsController::class)]
- class IconsControllerTest extends TestCase {
- use IntegrationTestTrait;
- /**
- * @return void
- */
- public function testIcons() {
- $this->disableErrorHandlerMiddleware();
- Configure::write('Icon', [
- 'sets' => [
- 'bs' => BootstrapIcon::class,
- ],
- ]);
- $this->get(['prefix' => 'Admin', 'plugin' => 'Tools', 'controller' => 'Icons', 'action' => 'index']);
- $this->assertResponseCode(200);
- }
- }
|