Commit 39bacf44 authored by catch's avatar catch
Browse files

Issue #3192427 by mondrake, daffie: Replace usages of deprecated AssertLegacyTrait::assertNotEqual

parent 3302b4e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public function testCRUD() {
      'label' => $this->randomString(),
      'style' => $this->randomMachineName(),
    ]);
    $this->assertNotEqual($config_test->uuid(), $empty->uuid());
    $this->assertNotEquals($empty->uuid(), $config_test->uuid());
    $this->assertIdentical($config_test->label, $expected['label']);
    $this->assertIdentical($config_test->style, $expected['style']);
    $this->assertIdentical($config_test->language()->getId(), $default_langcode);
+1 −1
Original line number Diff line number Diff line
@@ -96,7 +96,7 @@ public function testExportImport() {

    $this->originalSlogan = $this->config('system.site')->get('slogan');
    $this->newSlogan = $this->randomString(16);
    $this->assertNotEqual($this->newSlogan, $this->originalSlogan);
    $this->assertNotEquals($this->originalSlogan, $this->newSlogan);
    $this->config('system.site')
      ->set('slogan', $this->newSlogan)
      ->save();
+2 −2
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ public function testImportLock() {
    $this->container->get('lock.persistent')->release($config_importer::LOCK_NAME);

    // Verify site name has not changed.
    $this->assertNotEqual($new_site_name, $this->config('system.site')->get('name'));
    $this->assertNotEquals($this->config('system.site')->get('name'), $new_site_name);
  }

  /**
@@ -370,7 +370,7 @@ public function testImportValidation() {
    $this->assertText('Config import validate error 2.');

    // Verify site name has not changed.
    $this->assertNotEqual($new_site_name, $this->config('system.site')->get('name'));
    $this->assertNotEquals($this->config('system.site')->get('name'), $new_site_name);
  }

  public function testConfigUninstallConfigException() {
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public function testTransformedExportImport() {
    $originalSlogan = $this->config('system.site')->get('slogan');
    $this->assertEmpty($originalSlogan);
    $newSlogan = $this->randomMachineName(16);
    $this->assertNotEqual($newSlogan, $originalSlogan);
    $this->assertNotEquals($originalSlogan, $newSlogan);
    $this->config('system.site')
      ->set('slogan', $newSlogan)
      ->save();
+1 −1
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ public function testSiteWideContact() {
    $this->assertEqual($config['label'], $label);
    $this->assertEqual($config['recipients'], [$recipients[0], $recipients[1]]);
    $this->assertEqual($config['reply'], $reply);
    $this->assertNotEqual($id, $this->config('contact.settings')->get('default_form'));
    $this->assertNotEquals($this->config('contact.settings')->get('default_form'), $id);
    $this->assertText('Contact form ' . $label . ' has been updated.');
    // Ensure the label is displayed on the contact page for this form.
    $this->drupalGet('contact/' . $id);
Loading