Example #1
0
 /**
  * @covers Page::toArray
  */
 public function testToArray()
 {
     $page = new Page('Title', 'http://site.com', 'pageId', 550, 'fa fa-user');
     $this->assertEquals(['child' => [], 'hasChild' => false, 'id' => 'pageId', 'title' => 'Title', 'icon' => '<i class="fa fa-user"></i>', 'priority' => 550, 'url' => 'http://site.com', 'path' => ['Title'], 'isActive' => false, 'attributes' => '', 'badge' => null], $page->toArray());
 }
Example #2
0
 /**
  * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory
  */
 public function render()
 {
     return parent::render('cms::navigation.page');
 }