BootstrapIconCollectorTest.php 600 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Tools\Test\TestCase\View\Icon\Collector;
  3. use Cake\TestSuite\TestCase;
  4. use Tools\View\Icon\Collector\BootstrapIconCollector;
  5. class BootstrapIconCollectorTest extends TestCase {
  6. /**
  7. * Show that we are still API compatible/valid.
  8. *
  9. * @return void
  10. */
  11. public function testCollect(): void {
  12. $path = TEST_FILES . 'font_icon' . DS . 'bootstrap' . DS . 'bootstrap-icons.json';
  13. $result = BootstrapIconCollector::collect($path);
  14. $this->assertTrue(count($result) > 1360, 'count of ' . count($result));
  15. $this->assertTrue(in_array('info-circle-fill', $result, true));
  16. }
  17. }