mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-24 07:26:53 +00:00
Don't allow value 0 for getCacheDuration.
This commit is contained in:
parent
65e599ba65
commit
392c67984d
@ -87,6 +87,7 @@ class BridgeImplementationTest extends PHPUnit_Framework_TestCase {
|
||||
$abstract = new BridgeAbstractTest();
|
||||
|
||||
$this->assertNotEquals($bridge->getCacheDuration(), $abstract->getCacheDuration(), $bridgeName . ' seems to implement \'getCacheDuration\' with default values, so you might safely remove it');
|
||||
$this->assertNotEquals($bridge->getCacheDuration(), 0, $bridgeName . ' seems to implement \'getCacheDuration\' with value 0, which should not be allowed.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user