MaterialIconCollectorTest.php 577 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Tools\Test\TestCase\View\Icon\Collector;
  3. use Cake\TestSuite\TestCase;
  4. use Tools\View\Icon\Collector\MaterialIconCollector;
  5. class MaterialIconCollectorTest 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 . 'material' . DS . 'index.d.ts';
  13. $result = MaterialIconCollector::collect($path);
  14. $this->assertTrue(count($result) > 2444, 'count of ' . count($result));
  15. $this->assertTrue(in_array('zoom_in', $result, true));
  16. }
  17. }