diff options
Diffstat (limited to 'tests/app/Models/FeedDAOTest.php')
| -rw-r--r-- | tests/app/Models/FeedDAOTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/app/Models/FeedDAOTest.php b/tests/app/Models/FeedDAOTest.php new file mode 100644 index 000000000..e69b7c392 --- /dev/null +++ b/tests/app/Models/FeedDAOTest.php @@ -0,0 +1,11 @@ +<?php +declare(strict_types=1); + +class FeedDAOTest extends PHPUnit\Framework\TestCase { + function test_ttl_min(): void { + $feed = new FreshRSS_Feed('https://example.net/', false); + $feed->_ttl(-5); + self::assertEquals(-5, $feed->ttl(true)); + self::assertEquals(true, $feed->mute()); + } +} |
