public function testIsExpanded() { $this->assertFalse($this->_model->isExpanded()); $this->_model->setData(['expanded' => 1], 'scope'); $this->assertTrue($this->_model->isExpanded()); $this->_model->setData(['expanded' => 0], 'scope'); $this->assertFalse($this->_model->isExpanded()); $this->_model->setData(['expanded' => null], 'scope'); $this->assertFalse($this->_model->isExpanded()); }
public function testIsExpanded() { $this->assertFalse($this->_model->isExpanded()); $this->_model->setData(array('expanded' => 1), 'scope'); $this->assertTrue($this->_model->isExpanded()); $this->_model->setData(array('expanded' => 0), 'scope'); $this->assertFalse($this->_model->isExpanded()); $this->_model->setData(array('expanded' => null), 'scope'); $this->assertFalse($this->_model->isExpanded()); }