BootstrapIconTest.php 550 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Tools\Test\TestCase\View\Icon;
  3. use Cake\TestSuite\TestCase;
  4. use Tools\View\Icon\BootstrapIcon;
  5. class BootstrapIconTest extends TestCase {
  6. /**
  7. * @var \Tools\View\Icon\BootstrapIcon
  8. */
  9. protected $icon;
  10. /**
  11. * @return void
  12. */
  13. public function setUp(): void {
  14. parent::setUp();
  15. $this->icon = new BootstrapIcon();
  16. }
  17. /**
  18. * @return void
  19. */
  20. public function testRender(): void {
  21. $result = $this->icon->render('info-circle-fill');
  22. $this->assertSame('<span class="bi bi-info-circle-fill"></span>', $result);
  23. }
  24. }