public function showInNav($isShow = null) { if ($isShow !== null) { $this->setData('show_in_nav', $isShow); } return (bool) $this->getData('show_in_nav'); }
/** * Test * * @return void */ public function testShowInNav() { $this->object->showInNav(true); $this->assertTrue($this->object->showInNav()); }