From e2a2d746a3847674a9e91908255b521569399113 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 14 Jul 2024 00:05:53 +0200 Subject: [PATCH] Fix tests --- tests/Fileshare/AdapterTest.php | 4 ++-- tests/Fileshare/ExportSyncActionTest.php | 4 ++-- tests/Fileshare/FileshareIndexActionTest.php | 2 +- tests/Fileshare/FileshareUpdateActionTest.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/Fileshare/AdapterTest.php b/tests/Fileshare/AdapterTest.php index 6b057eab..4d823f4d 100644 --- a/tests/Fileshare/AdapterTest.php +++ b/tests/Fileshare/AdapterTest.php @@ -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(); diff --git a/tests/Fileshare/ExportSyncActionTest.php b/tests/Fileshare/ExportSyncActionTest.php index 19034173..27254a35 100644 --- a/tests/Fileshare/ExportSyncActionTest.php +++ b/tests/Fileshare/ExportSyncActionTest.php @@ -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(); diff --git a/tests/Fileshare/FileshareIndexActionTest.php b/tests/Fileshare/FileshareIndexActionTest.php index 8cfee9af..b9632b22 100644 --- a/tests/Fileshare/FileshareIndexActionTest.php +++ b/tests/Fileshare/FileshareIndexActionTest.php @@ -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') diff --git a/tests/Fileshare/FileshareUpdateActionTest.php b/tests/Fileshare/FileshareUpdateActionTest.php index 5cdeffd0..eedd2a24 100644 --- a/tests/Fileshare/FileshareUpdateActionTest.php +++ b/tests/Fileshare/FileshareUpdateActionTest.php @@ -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')]))