示例#1
0
 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());
 }
示例#2
0
 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());
 }