]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tests/ApplicationUtilsTest.php
Use 'dev' version on the master branch
[github/shaarli/Shaarli.git] / tests / ApplicationUtilsTest.php
index ad86e21c78d8efe965ea02e940aaff8a7181b9db..ef4f46a8ea23eb4099b337110c71855bb71c7872 100644 (file)
@@ -332,4 +332,15 @@ class ApplicationUtilsTest extends PHPUnit_Framework_TestCase
             ApplicationUtils::checkResourcePermissions($conf)
         );
     }
+
+    /**
+     * Check update with 'dev' as curent version (master branch).
+     * It should always return false.
+     */
+    public function testCheckUpdateDev()
+    {
+        $this->assertFalse(
+            ApplicationUtils::checkUpdate('dev', self::$testUpdateFile, 100, true, true)
+        );
+    }
 }