Fix tests
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
aabba32f89
commit
e2a2d746a3
|
@ -10,7 +10,7 @@ class AdapterTest extends FileshareTestCase
|
|||
{
|
||||
public function testItGetsFilesInRoot(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret')
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret')
|
||||
->withDirs('badenpowell', []);
|
||||
|
||||
$storage = OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])->getFilesystem();
|
||||
|
@ -20,7 +20,7 @@ class AdapterTest extends FileshareTestCase
|
|||
|
||||
public function testItGetsFilesInSubdirectory(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret')
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret')
|
||||
->withDirs('badenpowell', ['/pictures']);
|
||||
|
||||
$storage = OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])->getFilesystem();
|
||||
|
|
|
@ -31,7 +31,7 @@ class ExportSyncActionTest extends FileshareTestCase
|
|||
|
||||
public function testItUploadsRootFile(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->withOwncloudUser('badenpowell', 'secret')->withDirs('badenpowell', ['/abc']);
|
||||
$this->withoutExceptionHandling()->withUser('badenpowell', 'secret')->withDirs('badenpowell', ['/abc']);
|
||||
$connection = Fileshare::factory()
|
||||
->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
|
||||
->create();
|
||||
|
@ -49,7 +49,7 @@ class ExportSyncActionTest extends FileshareTestCase
|
|||
|
||||
public function testItUploadsGroupFile(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->withOwncloudUser('badenpowell', 'secret')->withDirs('badenpowell', ['/abc', '/stamm']);
|
||||
$this->withoutExceptionHandling()->withUser('badenpowell', 'secret')->withDirs('badenpowell', ['/abc', '/stamm']);
|
||||
$connection = Fileshare::factory()
|
||||
->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
|
||||
->create();
|
||||
|
|
|
@ -10,7 +10,7 @@ class FileshareIndexActionTest extends FileshareTestCase
|
|||
{
|
||||
public function testItListsOwncloudConnectionsThatAreActive(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret');
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret');
|
||||
$connection = Fileshare::factory()
|
||||
->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
|
||||
->name('lokaler Server')
|
||||
|
|
|
@ -10,7 +10,7 @@ class FileshareUpdateActionTest extends FileshareTestCase
|
|||
{
|
||||
public function testItStoresAConnection(): void
|
||||
{
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret');
|
||||
$this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret');
|
||||
|
||||
$connection = Fileshare::factory()
|
||||
->type(OwncloudConnection::from(['user' => 'test', 'password' => 'test', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
|
||||
|
@ -36,7 +36,7 @@ class FileshareUpdateActionTest extends FileshareTestCase
|
|||
|
||||
public function testItChecksConnection(): void
|
||||
{
|
||||
$this->login()->loginNami()->withOwncloudUser('test', 'test');
|
||||
$this->login()->loginNami()->withUser('test', 'test');
|
||||
|
||||
$connection = Fileshare::factory()
|
||||
->type(OwncloudConnection::from(['user' => 'test', 'password' => 'test', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
|
||||
|
|
Loading…
Reference in New Issue