3 namespace Drupal\user\Tests\Views;
5 use Drupal\views\Tests\ViewTestBase;
6 use Drupal\views\Tests\ViewTestData;
9 * Tests the changed field.
13 class UserChangedTest extends ViewTestBase {
20 public static $modules = ['views_ui', 'user_test_views'];
23 * Views used by this test.
27 public static $testViews = ['test_user_changed'];
29 protected function setUp() {
32 ViewTestData::createTestViews(get_class($this), ['user_test_views']);
34 $this->enableViewsTestModule();
38 * Tests changed field.
40 public function testChangedField() {
41 $path = 'test_user_changed';
45 $this->drupalGet($path, $options);
47 $this->assertText(t('Updated date') . ': ' . date('Y-m-d', REQUEST_TIME));