Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 0568ba4

Browse files
committed
ENH: refs #0313. Fixing a failing test in ItemModelTest.
We were failing because we were assuming the wrong ordering of items in the databaseDataset/default.xml.
1 parent f1bcf7b commit 0568ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/tests/models/base/ItemModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testGetLastRevision()
2929
$itemsFile = $this->loadData('Item', 'default');
3030
$revisionsFile = $this->loadData('ItemRevision', 'default');
3131
$revision = $this->Item->getLastRevision($itemsFile[0]);
32-
$this->assertEquals($revisionsFile[1]->getKey(), $revision->getKey());
32+
$this->assertEquals($revisionsFile[2]->getKey(), $revision->getKey());
3333
}
3434

3535
/** testAddRevision*/

0 commit comments

Comments
 (0)