You are here

public function UserChangedTest::testChangedField in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/Views/UserChangedTest.php \Drupal\Tests\user\Functional\Views\UserChangedTest::testChangedField()
  2. 9 core/modules/user/tests/src/Functional/Views/UserChangedTest.php \Drupal\Tests\user\Functional\Views\UserChangedTest::testChangedField()

Tests changed field.

File

core/modules/user/tests/src/Functional/Views/UserChangedTest.php, line 42

Class

UserChangedTest
Tests the changed field.

Namespace

Drupal\Tests\user\Functional\Views

Code

public function testChangedField() {
  $path = 'test_user_changed';
  $options = [];
  $this
    ->drupalGet($path, $options);
  $this
    ->assertSession()
    ->pageTextContains('Updated date: ' . date('Y-m-d', REQUEST_TIME));
}