You are here

public function DurationFieldBrowserTestBase::assertStatusCodeEquals in Duration Field 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertStatusCodeEquals()
  2. 8 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()
DurationFieldFunctionalTest::createDefaultSetup in tests/src/Functional/DurationFieldFunctionalTest.php
Sets up a date.
DurationFieldFunctionalTest::setFormatter in tests/src/Functional/DurationFieldFunctionalTest.php
Sets the formatter to be tested.
DurationFieldFunctionalTest::setHumanReadableOptions in tests/src/Functional/DurationFieldFunctionalTest.php
Sets some human readable options.
DurationFieldFunctionalTest::testHumanReadableDate in tests/src/Functional/DurationFieldFunctionalTest.php
Tests human readable date field formatter.
DurationFieldFunctionalTest::testHumanReadableFormatter in tests/src/Functional/DurationFieldFunctionalTest.php
Tests the Human Friendly duration field formatter outputs correct data.

... See full list

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\Functional

Code

public function assertStatusCodeEquals($statusCode) {
  $this
    ->assertSession()
    ->statusCodeEquals($statusCode);
}