Search for assert
- Search 7.x for assert
- Search 9.5.x for assert
- Search 10.3.x for assert
- Search 11.x for assert
- Other projects
Title | Object type | File name | Summary |
---|---|---|---|
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. |
AssertLegacyTrait::assertTitle | function | core/ |
Pass if the page title is the given string. |
AssertLegacyTrait::assertUniqueText | function | core/ |
Passes if the text is found ONLY ONCE on the text version of the page. |
AssertLegacyTrait::assertUrl | function | core/ |
Passes if the internal browser's URL matches the given path. |
AssertLegacyTrait::buildXPathQuery | function | core/ |
Builds an XPath query. |
AssertLegacyTrait::constructFieldXpath | function | core/ |
Helper: Constructs an XPath for the given set of attributes and value. |
AssertLegacyTrait::getAllOptions | function | core/ |
Get all option elements, including nested options, in a select. |
AssertLegacyTrait::getRawContent | function | core/ |
Gets the current raw content. |
AssertLegacyTrait::pass | function | core/ |
|
AssertLegacyTrait::verbose | function | core/ |
|
AssertLegacyTraitDeprecatedTest | class | core/ |
Tests deprecated AssertLegacyTrait functionality. |
AssertLegacyTraitDeprecatedTest.php | file | core/ |
|
AssertLegacyTraitDeprecatedTest::$modules | property | core/ |
Modules to enable. |
AssertLegacyTraitDeprecatedTest::testGetAllOptions | function | core/ |
Tests getAllOptions(). |
AssertLegacyTraitTest | class | core/ |
@coversDefaultClass \Drupal\FunctionalTests\AssertLegacyTrait @group Assert @group legacy |
AssertLegacyTraitTest.php | file | core/ |
|
AssertLegacyTraitTest::$page | property | core/ |
The mocked page element used for testing. |
AssertLegacyTraitTest::$session | property | core/ |
The mocked Mink session object used for testing. |
AssertLegacyTraitTest::$webAssert | property | core/ |
The mocked web assert class. |
AssertLegacyTraitTest::assertSession | function | core/ |
Returns WebAssert object. |
AssertLegacyTraitTest::getSession | function | core/ |
Returns a mocked behat session object. |
AssertLegacyTraitTest::setUp | function | core/ |
|
AssertLegacyTraitTest::testAssertNoCacheTag | function | core/ |
@covers ::assertNoCacheTag @expectedDeprecation AssertLegacyTrait::assertNoCacheTag() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead. See… |
AssertLegacyTraitTest::testAssertNoPattern | function | core/ |
@covers ::assertNoPattern @expectedDeprecation AssertLegacyTrait::assertNoPattern() is deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead. See https://www.drupal.org/node/3129738 |
AssertLegacyTraitTest::testAssertNoUniqueText | function | core/ |
@covers ::assertNoUniqueText |
AssertLegacyTraitTest::testAssertNoUniqueTextFail | function | core/ |
@covers ::assertNoUniqueText |
AssertLegacyTraitTest::testAssertNoUniqueTextMarkup | function | core/ |
@covers ::assertNoUniqueText |
AssertLegacyTraitTest::testAssertNoUniqueTextUnknown | function | core/ |
@covers ::assertNoUniqueText |
AssertLegacyTraitTest::testAssertOptionSelected | function | core/ |
@covers ::assertOptionSelected |
AssertLegacyTraitTest::testAssertOptionSelectedFail | function | core/ |
@covers ::assertOptionSelected |
AssertLegacyTraitTest::testAssertUniqueText | function | core/ |
@covers ::assertUniqueText |
AssertLegacyTraitTest::testAssertUniqueTextFail | function | core/ |
@covers ::assertUniqueText |
AssertLegacyTraitTest::testAssertUniqueTextMarkup | function | core/ |
@covers ::assertUniqueText |
AssertLegacyTraitTest::testAssertUniqueTextUnknown | function | core/ |
@covers ::assertUniqueText |
AssertMailTrait | trait | core/ |
Provides methods for testing emails sent during test runs. |
AssertMailTrait.php | file | core/ |
|
AssertMailTrait::assertMail | function | core/ |
Asserts that the most recently sent email message has the given value. |
Pagination
- Previous page
- Page 4
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.