| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace Tools\Test\TestCase\View\Icon;
- use Cake\TestSuite\TestCase;
- use Tools\View\Icon\FeatherIcon;
- class FeatherIconTest extends TestCase {
- /**
- * @var \Tools\View\Icon\FeatherIcon
- */
- protected $icon;
- /**
- * @return void
- */
- public function setUp(): void {
- parent::setUp();
- $this->icon = new FeatherIcon();
- }
- /**
- * @return void
- */
- public function testRender(): void {
- $result = $this->icon->render('view');
- $this->assertSame('<span data-feather="view"></span>', $result);
- }
- }
|