public function testId()
 {
     $this->assertNull($this->context->getId());
     $this->context->setId('test');
     $this->assertEquals('test', $this->context->getId());
     $this->assertEquals('test', $this->context->get(SingleItemContext::ID));
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct(ConfigProvider $configProvider, MetadataProvider $metadataProvider)
 {
     parent::__construct($configProvider, $metadataProvider);
     $this->setConfigExtras([new FiltersConfigExtra()]);
 }