function UserChangedTest::testChangedField
Same name in other branches
- 9 core/modules/user/tests/src/Functional/Views/UserChangedTest.php \Drupal\Tests\user\Functional\Views\UserChangedTest::testChangedField()
- 8.9.x core/modules/user/tests/src/Functional/Views/UserChangedTest.php \Drupal\Tests\user\Functional\Views\UserChangedTest::testChangedField()
- 10 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 45
Class
- UserChangedTest
- Tests the changed field.
Namespace
Drupal\Tests\user\Functional\ViewsCode
public function testChangedField() : void {
$path = 'test_user_changed';
$options = [];
$this->drupalGet($path, $options);
$this->assertSession()
->pageTextContains('Updated date: ' . date('Y-m-d', \Drupal::time()->getRequestTime()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.