function MarkupInterfaceComparatorTest::testAccepts
@covers ::accepts
@dataProvider dataSetProvider
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Test/ Comparator/ MarkupInterfaceComparatorTest.php, line 133
Class
Namespace
Drupal\KernelTests\Core\Test\ComparatorCode
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));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.