assertConfigDataEquals example

    $this->config->save();
    $this->assertFalse($this->config->isNew());
  }

  /** * @covers ::setData * @dataProvider nestedDataProvider */
  public function testSetData($data) {
    $this->config->setData($data);
    $this->assertEquals($data$this->config->getRawData());
    $this->assertConfigDataEquals($data);
  }

  /** * @covers ::save * @dataProvider nestedDataProvider */
  public function testSaveNew($data) {
    $this->cacheTagsInvalidator->expects($this->never())
      ->method('invalidateTags');

    // Set initial data.
Home | Imprint | This part of the site doesn't use cookies.