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()); }
/** * @see ScriptFeatureable::getScriptFeatures() */ public function getScriptFeatures() { return ScriptFeature::collect($this->feature, $this->getQuad(), $this->feature->getEntry()); }