Skip to content
Permalink
Browse files

Don't test sorting by modified time twice.

Not only is this redundant it is causing test failures on travis.
  • Loading branch information...
markstory committed Dec 3, 2016
1 parent 2f546b7 commit 98e3a7cd0bb7c9d9c952fc45eb828603108b5281
Showing with 0 additions and 27 deletions.
  1. +0 −27 tests/TestCase/Filesystem/FolderTest.php
@@ -1371,33 +1371,6 @@ public function testSortByTime()
$this->assertSame(['file_2.tmp', 'file_1.tmp'], $results);
}
/**
* testSortByTime2 method
*
* Verify that the order using modified time is correct.
*
* @return void
*/
public function testSortByTime2()
{
$Folder = new Folder(TMP . 'tests', true);
$fileA = new File($Folder->pwd() . DS . 'a.txt');
$fileA->create();
$fileC = new File($Folder->pwd() . DS . 'c.txt');
$fileC->create();
sleep(1);
$fileB = new File($Folder->pwd() . DS . 'b.txt');
$fileB->create();
$results = $Folder->find('.*', Folder::SORT_TIME);
$this->assertSame(['a.txt', 'c.txt', 'b.txt'], $results);
}
/**
* Verify that the order using name is correct.
*/

0 comments on commit 98e3a7c

Please sign in to comment.
You can’t perform that action at this time.