FeatherIconCollectorTest.php 572 B

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