File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public function __construct(
6363 ActivityManager $ activityManager ,
6464 AttachmentServiceValidator $ attachmentServiceValidator ,
6565 ) {
66+ $ this ->configService = $ configService ;
6667 $ this ->attachmentMapper = $ attachmentMapper ;
6768 $ this ->cardMapper = $ cardMapper ;
6869 $ this ->permissionService = $ permissionService ;
Original file line number Diff line number Diff line change 2929use OCA \Deck \Db \Assignment ;
3030use OCA \Deck \Db \AssignmentMapper ;
3131use OCA \Deck \Db \AttachmentMapper ;
32+ use OCA \Deck \Db \Board ;
3233use OCA \Deck \Db \BoardMapper ;
3334use OCA \Deck \Db \Card ;
3435use OCA \Deck \Db \CardMapper ;
@@ -151,6 +152,12 @@ public function testImportSuccess() {
151152 $ this ->userManager ->method ('userExists ' )
152153 ->willReturn (true );
153154
155+ $ board = new Board ();
156+ $ board ->setOwner ('admin ' );
157+ $ this ->trelloJsonService
158+ ->method ('getBoard ' )
159+ ->willReturn ($ board );
160+
154161 $ this ->boardMapper
155162 ->expects ($ this ->once ())
156163 ->method ('insert ' );
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ public function testFindUsers() {
358358 $ this ->userManager ->expects ($ this ->any ())
359359 ->method ('userExists ' )
360360 ->withConsecutive (['user1 ' ], ['user2 ' ])
361- ->willReturnOnConsecutiveCalls ($ user1 , $ user2 );
361+ ->willReturnOnConsecutiveCalls (true , true );
362362
363363 $ group = $ this ->createMock (IGroup::class);
364364 $ group ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments