public function DurationFieldBrowserTestBase::assertElementAttributeContains in Duration Field 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertElementAttributeContains()
- 8 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertElementAttributeContains()
Asserts that an attribute on an element contains the given value.
File
- tests/
src/ Functional/ DurationFieldBrowserTestBase.php, line 36
Class
- DurationFieldBrowserTestBase
- Base class that provides some helper functions for functional tests.
Namespace
Drupal\Tests\duration_field\FunctionalCode
public function assertElementAttributeContains($selector, $attribute, $value) {
$this
->assertSession()
->elementAttributeContains('css', $selector, $attribute, $value);
}