/** * @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()); }
/** * @return \Illuminate\View\View|\Illuminate\Contracts\View\Factory */ public function render() { return parent::render('cms::navigation.page'); }