Search for assert
- Search 7.x for assert
- Search 8.9.x for assert
- Search 10.3.x for assert
- Search 11.x for assert
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
AssertHelperTraitTest.php | file | core/ |
|
AssertHelperTraitTest::providerCastSafeStrings | function | core/ |
|
AssertHelperTraitTest::testCastSafeStrings | function | core/ |
@covers ::castSafeStrings @dataProvider providerCastSafeStrings |
AssertHelperTraitTest::testTraitDeprecation | function | core/ |
|
AssertLegacyTrait | trait | core/ |
Translates Simpletest assertion methods to PHPUnit. |
AssertLegacyTrait | trait | core/ |
Provides convenience methods for assertions in browser tests. |
AssertLegacyTrait.php | file | core/ |
|
AssertLegacyTrait.php | file | core/ |
|
AssertLegacyTrait::assert | function | core/ |
|
AssertLegacyTrait::assertCacheTag | function | core/ |
Asserts whether an expected cache tag was present in the last response. |
AssertLegacyTrait::assertElementNotPresent | function | core/ |
Asserts that the element with the given CSS selector is not present. |
AssertLegacyTrait::assertElementPresent | function | core/ |
Asserts that the element with the given CSS selector is present. |
AssertLegacyTrait::assertEqual | function | core/ |
|
AssertLegacyTrait::assertEscaped | function | core/ |
Passes if the raw text IS found escaped on the loaded page, fail otherwise. |
AssertLegacyTrait::assertField | function | core/ |
Asserts that a field exists with the given name or ID. |
AssertLegacyTrait::assertFieldById | function | core/ |
Asserts that a field exists with the given ID and value. |
AssertLegacyTrait::assertFieldByName | function | core/ |
Asserts that a field exists with the given name and value. |
AssertLegacyTrait::assertFieldByXPath | function | core/ |
Asserts that a field exists in the current page by the given XPath. |
AssertLegacyTrait::assertFieldChecked | function | core/ |
Asserts that a checkbox field in the current page is checked. |
AssertLegacyTrait::assertFieldsByValue | function | core/ |
Asserts that a field exists in the current page with a given Xpath result. |
AssertLegacyTrait::assertHeader | function | core/ |
Checks that current response header equals value. |
AssertLegacyTrait::assertIdentical | function | core/ |
|
AssertLegacyTrait::assertIdenticalObject | function | core/ |
|
AssertLegacyTrait::assertLink | function | core/ |
Passes if a link with the specified label is found. |
AssertLegacyTrait::assertLinkByHref | function | core/ |
Passes if a link containing a given href (part) is found. |
AssertLegacyTrait::assertNoCacheTag | function | core/ |
Asserts whether an expected cache tag was absent in the last response. |
AssertLegacyTrait::assertNoEscaped | function | core/ |
Passes if the raw text is not found escaped on the loaded page. |
AssertLegacyTrait::assertNoField | function | core/ |
Asserts that a field does NOT exist with the given name or ID. |
AssertLegacyTrait::assertNoFieldById | function | core/ |
Asserts that a field does not exist with the given ID and value. |
AssertLegacyTrait::assertNoFieldByName | function | core/ |
Asserts that a field does not exist with the given name and value. |
AssertLegacyTrait::assertNoFieldByXPath | function | core/ |
Asserts that a field does not exist or its value does not match, by XPath. |
AssertLegacyTrait::assertNoFieldChecked | function | core/ |
Asserts that a checkbox field in the current page is not checked. |
AssertLegacyTrait::assertNoLink | function | core/ |
Passes if a link with the specified label is not found. |
AssertLegacyTrait::assertNoLinkByHref | function | core/ |
Passes if a link containing a given href (part) is not found. |
AssertLegacyTrait::assertNoOption | function | core/ |
Asserts that a select option does NOT exist in the current page. |
AssertLegacyTrait::assertNoPattern | function | core/ |
Triggers a pass if the Perl regex pattern is not found in the raw content. |
AssertLegacyTrait::assertNoRaw | function | core/ |
Passes if the raw text IS not found on the loaded page, fail otherwise. |
AssertLegacyTrait::assertNotEqual | function | core/ |
|
AssertLegacyTrait::assertNoText | function | core/ |
Passes if the page (with HTML stripped) does not contains the text. |
AssertLegacyTrait::assertNotIdentical | function | core/ |
|
AssertLegacyTrait::assertNoUniqueText | function | core/ |
Passes if the text is found MORE THAN ONCE on the text version of the page. |
AssertLegacyTrait::assertOption | function | core/ |
Asserts that a select option in the current page exists. |
AssertLegacyTrait::assertOptionByText | function | core/ |
Asserts that a select option with the visible text exists. |
AssertLegacyTrait::assertOptionSelected | function | core/ |
Asserts that a select option in the current page is checked. |
AssertLegacyTrait::assertPattern | function | core/ |
Triggers a pass if the Perl regex pattern is found in the raw content. |
AssertLegacyTrait::assertRaw | function | core/ |
Passes if the raw text IS found on the loaded page, fail otherwise. |
AssertLegacyTrait::assertResponse | function | core/ |
Asserts the page responds with the specified response code. |
AssertLegacyTrait::assertSession | function | core/ |
Returns WebAssert object. |
AssertLegacyTrait::assertText | function | core/ |
Passes if the page (with HTML stripped) contains the text. |
AssertLegacyTrait::assertTextHelper | function | core/ |
Helper for assertText and assertNoText. |
Pagination
- Previous page
- Page 3
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.