Skip to content

Commit

Permalink
Don't test sorting by modified time twice.
Browse files Browse the repository at this point in the history
Not only is this redundant it is causing test failures on travis.
  • Loading branch information
markstory committed Dec 3, 2016
1 parent 2f546b7 commit 98e3a7c
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/TestCase/Filesystem/FolderTest.php
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 98e3a7c

Please sign in to comment.