You are here

public function TestBaseTest::testAssertNotEqual in Drupal 8

@covers ::assertNotEqual @dataProvider providerEqualityAssertions

File

core/modules/simpletest/tests/src/Unit/TestBaseTest.php, line 361

Class

TestBaseTest
@requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase

Namespace

Drupal\Tests\simpletest\Unit

Code

public function testAssertNotEqual($expected_identical, $expected_equal, $first, $second) {
  $test_base = $this
    ->getTestBaseForAssertionTests('test_id');
  $this
    ->assertEquals(!$expected_equal, $this
    ->invokeProtectedMethod($test_base, 'assertNotEqual', [
    $first,
    $second,
  ]));
}