Inheritance: extends Xpressengine\Theme\AbstractTheme
コード例 #1
0
 public function testToArray()
 {
     $entity = new ThemeEntity(TestTheme::getId(), TestTheme::class);
     $this->assertEquals(['id' => 'theme/test@theme', 'title' => 'Test Theme', 'class' => 'Xpressengine\\Tests\\Theme\\TestTheme', 'description' => 'blur~~ blur~~', 'screenshot' => 'screenshot'], $entity->toArray());
 }
コード例 #2
0
 public function testGetEditFiles()
 {
     $theme = new TestTheme();
     $this->assertEquals(['foo'], $theme->getEditFiles());
 }