Fix fileshare test
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c851785a14
commit
d5e7909730
|
|
@ -41,7 +41,7 @@ abstract class ConnectionType extends Data
|
|||
{
|
||||
$filesystem = $this->getFilesystem();
|
||||
|
||||
return $filesystem->directories($parent ?: '/');
|
||||
return collect($filesystem->directories($parent ?: '/'))->sort()->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@ class FileshareFilesActionTest extends FileshareTestCase
|
|||
'parent' => null,
|
||||
])
|
||||
->assertJsonCount(2, 'data')
|
||||
->assertJsonPath('data.0.name', 'pictures')
|
||||
->assertJsonPath('data.0.path', '/pictures')
|
||||
->assertJsonPath('data.0.name', 'lala')
|
||||
->assertJsonPath('data.0.path', '/lala')
|
||||
->assertJsonPath('data.0.parent', '/')
|
||||
->assertJsonPath('data.1.name', 'lala')
|
||||
->assertJsonPath('data.1.path', '/lala')
|
||||
->assertJsonPath('data.1.name', 'pictures')
|
||||
->assertJsonPath('data.1.path', '/pictures')
|
||||
->assertJsonPath('data.1.parent', '/');
|
||||
}
|
||||
|
||||
|
|
@ -92,11 +92,11 @@ class FileshareFilesActionTest extends FileshareTestCase
|
|||
'parent' => null,
|
||||
])
|
||||
->assertJsonCount(2, 'data')
|
||||
->assertJsonPath('data.0.name', 'pictures')
|
||||
->assertJsonPath('data.0.path', '/pictures')
|
||||
->assertJsonPath('data.0.name', 'lala')
|
||||
->assertJsonPath('data.0.path', '/lala')
|
||||
->assertJsonPath('data.0.parent', '/')
|
||||
->assertJsonPath('data.1.name', 'lala')
|
||||
->assertJsonPath('data.1.path', '/lala')
|
||||
->assertJsonPath('data.1.name', 'pictures')
|
||||
->assertJsonPath('data.1.path', '/pictures')
|
||||
->assertJsonPath('data.1.parent', '/');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue