Пример #1
0
 /**
  * Get the CheckBox Quad
  *
  * @api
  * @return Quad
  */
 public function getQuad()
 {
     $quad = $this->feature->getQuad();
     if ($quad) {
         return $quad;
     }
     return $this->createQuad();
 }
 public function testQuad()
 {
     $checkBoxFeature = new CheckBoxFeature();
     $quad = new Quad();
     $this->assertNull($checkBoxFeature->getQuad());
     $this->assertSame($checkBoxFeature, $checkBoxFeature->setQuad($quad));
     $this->assertEquals($quad, $checkBoxFeature->getQuad());
     $this->assertNotNull($quad->getId());
     $this->assertTrue($quad->getScriptEvents());
 }