public function testEntry()
 {
     $valuePickerFeature = new ValuePickerFeature();
     $entry = new Entry();
     $this->assertNull($valuePickerFeature->getEntry());
     $this->assertSame($valuePickerFeature, $valuePickerFeature->setEntry($entry));
     $this->assertEquals($entry, $valuePickerFeature->getEntry());
     $this->assertNotNull($entry->getId());
 }
Esempio n. 2
0
 /**
  * @see ScriptFeatureable::getScriptFeatures()
  */
 public function getScriptFeatures()
 {
     return ScriptFeature::collect($this->feature, $this->getLabel(), $this->feature->getEntry());
 }