diff options
Diffstat (limited to 'tests/Unit/Service/StatusFlagTest.php')
-rw-r--r-- | tests/Unit/Service/StatusFlagTest.php | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/Unit/Service/StatusFlagTest.php b/tests/Unit/Service/StatusFlagTest.php deleted file mode 100644 index 5d672fc53..000000000 --- a/tests/Unit/Service/StatusFlagTest.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php -/** - * Nextcloud - News - * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. - * - * @author Alessandro Cosentino <cosenal@gmail.com> - * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @copyright Alessandro Cosentino 2012 - * @copyright Bernhard Posselt 2012, 2014 - */ - -namespace OCA\News\Db; - - -class StatusFlagTest extends \PHPUnit_Framework_TestCase { - - private $statusFlag; - - protected function setUp(){ - $this->statusFlag = new StatusFlag(); - } - - - public function testTypeToStatusUnreadStarred(){ - $expected = StatusFlag::STARRED; - $status = $this->statusFlag->typeToStatus(FeedType::STARRED, false); - - $this->assertEquals($expected, $status); - } - - - public function testTypeToStatusUnread(){ - $expected = StatusFlag::UNREAD; - $status = $this->statusFlag->typeToStatus(FeedType::FEED, false); - - $this->assertEquals($expected, $status); - } - - - public function testTypeToStatusReadStarred(){ - $expected = StatusFlag::STARRED; - $status = $this->statusFlag->typeToStatus(FeedType::STARRED, true); - - $this->assertEquals($expected, $status); - } - - - public function testTypeToStatusRead(){ - $expected = (~StatusFlag::UNREAD) & 0; - $status = $this->statusFlag->typeToStatus(FeedType::FEED, true); - - $this->assertEquals($expected, $status); - } - -}
\ No newline at end of file |