public function testDefault()
 {
     $checkBoxFeature = new CheckBoxFeature();
     $this->assertNull($checkBoxFeature->getDefault());
     $this->assertSame($checkBoxFeature, $checkBoxFeature->setDefault(true));
     $this->assertTrue($checkBoxFeature->getDefault());
 }
Пример #2
0
 /**
  * Get the default value
  *
  * @api
  * @return bool
  */
 public function getDefault()
 {
     return $this->feature->getDefault();
 }