setUpDefaultValue example


  protected function setUp(): void {
    parent::setUp();

    $this->typedDataManager = $this->createMock(TypedDataManagerInterface::class);
  }

  /** * @covers ::getContextValue */
  public function testDefaultValue() {
    $this->setUpDefaultValue('test');

    $context = new Context($this->contextDefinition);
    $context->setTypedDataManager($this->typedDataManager);
    $this->assertEquals('test', $context->getContextValue());
  }

  /** * @covers ::getContextData */
  public function testDefaultDataValue() {
    $this->setUpDefaultValue('test');

    
Home | Imprint | This part of the site doesn't use cookies.