mscherer 3 years ago
parent
commit
e286dfb9fe
1 changed files with 10 additions and 0 deletions
  1. 10 0
      tests/TestCase/View/Icon/MaterialIconTest.php

+ 10 - 0
tests/TestCase/View/Icon/MaterialIconTest.php

@@ -29,4 +29,14 @@ class MaterialIconTest extends TestCase {
 		$this->assertSame('<span class="material-icons">view</span>', $result);
 	}
 
+	/**
+	 * @return void
+	 */
+	public function testRenderNamespace(): void {
+		$this->icon = new MaterialIcon(['namespace' => 'material-symbols-outlined']);
+
+		$result = $this->icon->render('view');
+		$this->assertSame('<span class="material-symbols-outlined">view</span>', $result);
+	}
+
 }