diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-03-12 15:02:06 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-03-12 15:05:59 +0100 |
commit | b897c81f8cbf117828fb710f0827f124025f9a89 (patch) | |
tree | 5e559eb8c0d227696a8c3f870eb94a1b539962ec /tests | |
parent | 7fc5f07492b9bfe58cb33907ceb42e9bccd624ce (diff) | |
download | Shaarli-b897c81f8cbf117828fb710f0827f124025f9a89.tar.gz Shaarli-b897c81f8cbf117828fb710f0827f124025f9a89.tar.zst Shaarli-b897c81f8cbf117828fb710f0827f124025f9a89.zip |
Use 'dev' version on the master branch
Allowed check branches are now `latest` and `stable`.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ApplicationUtilsTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ApplicationUtilsTest.php b/tests/ApplicationUtilsTest.php index ad86e21c..ef4f46a8 100644 --- a/tests/ApplicationUtilsTest.php +++ b/tests/ApplicationUtilsTest.php | |||
@@ -332,4 +332,15 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase | |||
332 | ApplicationUtils::checkResourcePermissions($conf) | 332 | ApplicationUtils::checkResourcePermissions($conf) |
333 | ); | 333 | ); |
334 | } | 334 | } |
335 | |||
336 | /** | ||
337 | * Check update with 'dev' as curent version (master branch). | ||
338 | * It should always return false. | ||
339 | */ | ||
340 | public function testCheckUpdateDev() | ||
341 | { | ||
342 | $this->assertFalse( | ||
343 | ApplicationUtils::checkUpdate('dev', self::$testUpdateFile, 100, true, true) | ||
344 | ); | ||
345 | } | ||
335 | } | 346 | } |