瀏覽代碼

fix unit tests

Olivier Massot 3 年之前
父節點
當前提交
dcdf5d95d5
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      tests/Service/Mobyt/MobytServiceTest.php

+ 7 - 1
tests/Service/Mobyt/MobytServiceTest.php

@@ -44,7 +44,13 @@ class MobytServiceTest extends TestCase
             ->method('getContent')
             ->with(
                 'login',
-                ['username' => $login, 'password' => $password]
+                [],
+                [
+                    'headers' => [
+                        'Content-Type: application/json',
+                        'Authorization: Basic ' . base64_encode($login.':'.$password),
+                    ]
+                ]
             )
             ->willReturn('123;456');