public function testListing()
{
$response = $this->restCall('/jarves/admin/file?path=/');
$bundle = null;
foreach ($response['data'] as $file) {
if ('/bundles' === $file['path']) {
$bundle = $file;
}
}
$this->assertNotNull($bundle);
$this->assertGreaterThan(0, $bundle['id']);
$this->assertEquals('/bundles', $bundle['path']);
$this->assertEquals('bundles/', $bundle['name']);
$this->assertEquals('/', $bundle['dir']);
$this->assertEquals(true, $bundle['writeAccess']);
$this->assertEquals('dir', $bundle['type']);
}