public function DurationFieldBrowserTestBase::assertStatusCodeEquals in Duration Field 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertStatusCodeEquals()
- 3.0.x tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertStatusCodeEquals()
Asserts that a status code is what it is supposed to be.
10 calls to DurationFieldBrowserTestBase::assertStatusCodeEquals()
- DurationFieldAccessTest::createDefaultSetup in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Sets up a date.
- DurationFieldAccessTest::setFormatter in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Sets the formatter to be tested.
- DurationFieldAccessTest::setHumanReadableOptions in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Sets some human readable options.
- DurationFieldAccessTest::testHumanReadableAll in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests human readable values.
- DurationFieldAccessTest::testHumanReadableDate in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests human readable dates.
File
- tests/
src/ Functional/ DurationFieldBrowserTestBase.php, line 15
Class
- DurationFieldBrowserTestBase
- Base class that provides some helper functions for functional tests.
Namespace
Drupal\Tests\duration_field\FunctionalCode
public function assertStatusCodeEquals($statusCode) {
$this
->assertSession()
->statusCodeEquals($statusCode);
}