FontAwesome6CollectorTest.php 582 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Tools\Test\TestCase\View\Icon\Collector;
  3. use Cake\TestSuite\TestCase;
  4. use Tools\View\Icon\Collector\FontAwesome6IconCollector;
  5. class FontAwesome6CollectorTest 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 . 'fa6' . DS . 'icons.json';
  13. $result = FontAwesome6IconCollector::collect($path);
  14. $this->assertTrue(count($result) > 1456, 'count of ' . count($result));
  15. $this->assertTrue(in_array('thumbs-up', $result, true));
  16. }
  17. }