You are here

public function MarkupInterfaceComparatorTest::testAccepts in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Test/Comparator/MarkupInterfaceComparatorTest.php \Drupal\KernelTests\Core\Test\Comparator\MarkupInterfaceComparatorTest::testAccepts()

@covers ::accepts @dataProvider dataSetProvider

File

core/tests/Drupal/KernelTests/Core/Test/Comparator/MarkupInterfaceComparatorTest.php, line 132

Class

MarkupInterfaceComparatorTest
Tests \Drupal\TestTools\Comparator\MarkupInterfaceComparator.

Namespace

Drupal\KernelTests\Core\Test\Comparator

Code

public function testAccepts($expected, $actual, $accepts_result, $equals_result) {
  if ($accepts_result) {
    $this
      ->assertTrue($this->comparator
      ->accepts($expected, $actual));
  }
  else {
    $this
      ->assertFalse($this->comparator
      ->accepts($expected, $actual));
  }
}