[Finder] Force set access time in test

This commit is contained in:
Nyholm 2020-11-01 18:27:51 +01:00
parent 91fb5fae36
commit c5ec51abdf
No known key found for this signature in database
GPG Key ID: 1187B6F70C4F519E
1 changed files with 2 additions and 1 deletions

View File

@ -35,9 +35,10 @@ class SortableIteratorTest extends RealIteratorTestCase
case SortableIterator::SORT_BY_ACCESSED_TIME:
touch(self::toAbsolute('.git'));
sleep(1);
file_get_contents(self::toAbsolute('.bar'));
touch(self::toAbsolute('.bar'), time());
break;
case SortableIterator::SORT_BY_CHANGED_TIME:
sleep(1);
file_put_contents(self::toAbsolute('test.php'), 'foo');
sleep(1);
file_put_contents(self::toAbsolute('test.py'), 'foo');