Skip to content

Commit 70e9c14

Browse files
harm-lessharm-less
harm-less
authored and
harm-less
committed
Added one last code coverage
1 parent dd7fd47 commit 70e9c14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/FQ/Tests/Query/FilesQueryTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ public function testRunQueryAndLoadFileAfterwards() {
198198
$query->load();
199199
$this->assertTrue(class_exists('File2'));
200200
}
201+
public function testRunQueryAndLoadJustOneFileAfterwards() {
202+
$query = $this->query();
203+
$this->runQuery('File1');
204+
$query->load(1);
205+
$this->assertTrue(class_exists('File2'));
206+
}
201207
public function testRunQueryAndLoadFileAfterwardsButFails() {
202208
$this->setExpectedException('FQ\Exceptions\FileQueryException', 'Loading files requires the filter "existing"');
203209
$query = $this->query();

0 commit comments

Comments
 (0)