Skip to content

Add strict type on Notifications tests - #15935

Merged
skjnldsv merged 1 commit into
masterfrom
fix/tests/notifications
Jun 14, 2019
Merged

Add strict type on Notifications tests#15935
skjnldsv merged 1 commit into
masterfrom
fix/tests/notifications

Conversation

@skjnldsv

@skjnldsvskjnldsv commented Jun 12, 2019

Copy link
Copy Markdown
Member

@skjnldsvskjnldsv added bug 3. to review Waiting for reviews labels Jun 12, 2019
@skjnldsvskjnldsv added this to the Nextcloud 17 milestone Jun 12, 2019
@skjnldsvskjnldsv self-assigned this Jun 12, 2019
@georgehrke

Copy link
Copy Markdown
Member

I think we should add strict return types as well. :)

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

I think we should add strict return types as well. :)

Do_it_shia_laboeuf.gif

Comment threadlib/public/Notification/INotification.php
@juliusknorr

Copy link
Copy Markdown
Member

Two remaining 😉

1) OCA\Comments\Tests\Unit\Controller\NotificationsTest::testViewSuccess
133 | TypeError: Argument 1 passed to Mock_INotification_fc0f9ea9::setUser() must be of the type string, null given, called in /drone/src/apps/comments/lib/Controller/Notifications.php on line 145
134 | 135 | /drone/src/apps/comments/lib/Controller/Notifications.php:145
136 | /drone/src/apps/comments/lib/Controller/Notifications.php:118
137 | /drone/src/apps/comments/tests/Unit/Controller/NotificationsTest.php:153
138 | 139 | 2) OCA\Comments\Tests\Unit\Controller\NotificationsTest::testViewNoFile
140 | TypeError: Argument 1 passed to Mock_INotification_fc0f9ea9::setUser() must be of the type string, null given, called in /drone/src/apps/comments/lib/Controller/Notifications.php on line 145
141 | 142 | /drone/src/apps/comments/lib/Controller/Notifications.php:145
143 | /drone/src/apps/comments/lib/Controller/Notifications.php:118
144 | /drone/src/apps/comments/tests/Unit/Controller/NotificationsTest.php:216
145

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv
skjnldsvforce-pushed the fix/tests/notifications branch from 843f0d0 to e9351efCompareJune 13, 2019 12:58
@skjnldsv

Copy link
Copy Markdown
MemberAuthor

Done!

@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 14, 2019
@skjnldsv
skjnldsv merged commit bf18f1e into masterJun 14, 2019
@skjnldsv
skjnldsv deleted the fix/tests/notifications branch June 14, 2019 12:12
@blizzz

Copy link
Copy Markdown
Member

Also needs backports, doesn't it ?

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

Yes!

@skjnldsv

Copy link
Copy Markdown
MemberAuthor

/backport to stable16

@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable16 in #16014

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@skjnldsv@georgehrke@juliusknorr@blizzz@ChristophWurst