Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2020-12-05 22:44:00 +0300
committerGitHub <noreply@github.com>2020-12-05 22:44:00 +0300
commitbf0081da09828db80da3b716ca274e3313241aa4 (patch)
tree1d4e6a0d69b39826b9b737144a9734a8101c99d0 /tests/Unit
parentb353a90b1b4fc4c065c1c376caf5e166c917b087 (diff)
Psalm (#1277)
* added config for psalm * removed, fixed and additions annotations * added typehints
Diffstat (limited to 'tests/Unit')
-rw-r--r--tests/Unit/Db/SubscriptionMapperTest.php2
-rw-r--r--tests/Unit/Db/VoteMapperTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Db/SubscriptionMapperTest.php b/tests/Unit/Db/SubscriptionMapperTest.php
index d5a06da3..cdab71c5 100644
--- a/tests/Unit/Db/SubscriptionMapperTest.php
+++ b/tests/Unit/Db/SubscriptionMapperTest.php
@@ -101,7 +101,7 @@ class SubscriptionMapperTest extends UnitTestCase {
*/
public function testUnsubscribe() {
foreach ($this->polls as $poll) {
- $this->assertTrue($this->subscriptionMapper->unsubscribe($poll->getId(), $this->users[$poll->getId()]));
+ $this->assertNull($this->subscriptionMapper->unsubscribe($poll->getId(), $this->users[$poll->getId()]));
}
}
diff --git a/tests/Unit/Db/VoteMapperTest.php b/tests/Unit/Db/VoteMapperTest.php
index ab6c21ad..0af17a0d 100644
--- a/tests/Unit/Db/VoteMapperTest.php
+++ b/tests/Unit/Db/VoteMapperTest.php
@@ -151,7 +151,7 @@ class VoteMapperTest extends UnitTestCase {
*/
public function testDeleteByPollAndUser() {
foreach ($this->polls as $poll) {
- $this->assertTrue($this->voteMapper->deleteByPollAndUser($poll->getId(), 'voter'));
+ $this->assertNull($this->voteMapper->deleteByPollAndUser($poll->getId(), 'voter'));
}
}