Fix tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-07-14 00:05:53 +02:00
parent aabba32f89
commit e2a2d746a3
4 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ class AdapterTest extends FileshareTestCase
{ {
public function testItGetsFilesInRoot(): void public function testItGetsFilesInRoot(): void
{ {
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret') $this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret')
->withDirs('badenpowell', []); ->withDirs('badenpowell', []);
$storage = OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])->getFilesystem(); $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 public function testItGetsFilesInSubdirectory(): void
{ {
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret') $this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret')
->withDirs('badenpowell', ['/pictures']); ->withDirs('badenpowell', ['/pictures']);
$storage = OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])->getFilesystem(); $storage = OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])->getFilesystem();

View File

@ -31,7 +31,7 @@ class ExportSyncActionTest extends FileshareTestCase
public function testItUploadsRootFile(): void public function testItUploadsRootFile(): void
{ {
$this->withoutExceptionHandling()->withOwncloudUser('badenpowell', 'secret')->withDirs('badenpowell', ['/abc']); $this->withoutExceptionHandling()->withUser('badenpowell', 'secret')->withDirs('badenpowell', ['/abc']);
$connection = Fileshare::factory() $connection = Fileshare::factory()
->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])) ->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
->create(); ->create();
@ -49,7 +49,7 @@ class ExportSyncActionTest extends FileshareTestCase
public function testItUploadsGroupFile(): void 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() $connection = Fileshare::factory()
->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])) ->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
->create(); ->create();

View File

@ -10,7 +10,7 @@ class FileshareIndexActionTest extends FileshareTestCase
{ {
public function testItListsOwncloudConnectionsThatAreActive(): void public function testItListsOwncloudConnectionsThatAreActive(): void
{ {
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret'); $this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret');
$connection = Fileshare::factory() $connection = Fileshare::factory()
->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])) ->type(OwncloudConnection::from(['user' => 'badenpowell', 'password' => 'secret', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))
->name('lokaler Server') ->name('lokaler Server')

View File

@ -10,7 +10,7 @@ class FileshareUpdateActionTest extends FileshareTestCase
{ {
public function testItStoresAConnection(): void public function testItStoresAConnection(): void
{ {
$this->withoutExceptionHandling()->login()->loginNami()->withOwncloudUser('badenpowell', 'secret'); $this->withoutExceptionHandling()->login()->loginNami()->withUser('badenpowell', 'secret');
$connection = Fileshare::factory() $connection = Fileshare::factory()
->type(OwncloudConnection::from(['user' => 'test', 'password' => 'test', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])) ->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 public function testItChecksConnection(): void
{ {
$this->login()->loginNami()->withOwncloudUser('test', 'test'); $this->login()->loginNami()->withUser('test', 'test');
$connection = Fileshare::factory() $connection = Fileshare::factory()
->type(OwncloudConnection::from(['user' => 'test', 'password' => 'test', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')])) ->type(OwncloudConnection::from(['user' => 'test', 'password' => 'test', 'base_url' => env('TEST_OWNCLOUD_DOMAIN')]))