You are here

public function TestBaseTest::testAssertNotIdentical in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/tests/src/Unit/TestBaseTest.php \Drupal\Tests\simpletest\Unit\TestBaseTest::testAssertNotIdentical()

@covers ::assertNotIdentical @dataProvider providerEqualityAssertions

File

core/modules/simpletest/tests/src/Unit/TestBaseTest.php, line 340
Contains \Drupal\Tests\simpletest\Unit\TestBaseTest.

Class

TestBaseTest
@coversDefaultClass \Drupal\simpletest\TestBase @group simpletest

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testAssertNotIdentical($expected_identical, $expected_equal, $first, $second) {
  $test_base = $this
    ->getTestBaseForAssertionTests('test_id');
  $this
    ->assertEquals(!$expected_identical, $this
    ->invokeProtectedMethod($test_base, 'assertNotIdentical', array(
    $first,
    $second,
  )));
}