fix use of deleted RequestsWrapper in tests

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2022-04-11 22:02:33 +02:00
Родитель 377d1915ab
Коммит b43bd4ba66
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7424F1874854DF23
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -24,7 +24,6 @@
namespace OCA\SharePoint\Tests\Unit;
use Exception;
use OCA\SharePoint\Helper\RequestsWrapper;
use OCA\SharePoint\ContextsFactory;
use OCA\SharePoint\Client;
use OCA\SharePoint\NotFoundException;
@ -47,20 +46,16 @@ class SharePointClientTest extends TestCase {
/** @var Client */
protected $client;
/** @var RequestsWrapper|\PHPUnit\Framework\MockObject\MockObject */
protected $requestWrapper;
protected function setUp(): void {
parent::setUp();
$this->contextsFactory = $this->createMock(ContextsFactory::class);
$this->requestWrapper = $this->createMock(RequestsWrapper::class);
$credentials = ['user' => 'foobar', 'password' => 'barfoo'];
$this->documentLibraryTitle = 'Our Docs';
$this->client = new Client(
$this->contextsFactory,
$this->requestWrapper,
'my.sp.server',
$credentials,
[]