public function testEntry()
 {
     $checkBoxFeature = new CheckBoxFeature();
     $entry = new Entry();
     $this->assertNull($checkBoxFeature->getEntry());
     $this->assertSame($checkBoxFeature, $checkBoxFeature->setEntry($entry));
     $this->assertEquals($entry, $checkBoxFeature->getEntry());
     $this->assertNotNull($entry->getId());
 }
예제 #2
0
 /**
  * @see ScriptFeatureable::getScriptFeatures()
  */
 public function getScriptFeatures()
 {
     return ScriptFeature::collect($this->feature, $this->getQuad(), $this->feature->getEntry());
 }