summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-09-03 18:02:00 -0400
committerFrederic Guillot <fred@kanboard.net>2016-09-03 18:02:00 -0400
commitffd58d06fa827827c696cb46e5c0e2fca3c240bc (patch)
tree65674dd49faf5bfbadc6af1cbead57b5055290c2 /tests
parent75a9e01a9854efd170a03f441f9703de9d77eeb8 (diff)
Support version operators for plugin directory: >= and >
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Core/Plugin/DirectoryTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/units/Core/Plugin/DirectoryTest.php b/tests/units/Core/Plugin/DirectoryTest.php
index 13aef4b9..302bd6f6 100644
--- a/tests/units/Core/Plugin/DirectoryTest.php
+++ b/tests/units/Core/Plugin/DirectoryTest.php
@@ -12,6 +12,11 @@ class DirectoryTest extends Base
$this->assertFalse($pluginDirectory->isCompatible(array('compatible_version' => '1.0.29'), '1.0.28'));
$this->assertTrue($pluginDirectory->isCompatible(array('compatible_version' => '1.0.28'), '1.0.28'));
$this->assertTrue($pluginDirectory->isCompatible(array('compatible_version' => '1.0.28'), 'master.1234'));
+ $this->assertTrue($pluginDirectory->isCompatible(array('compatible_version' => '>=1.0.32'), 'master'));
+ $this->assertTrue($pluginDirectory->isCompatible(array('compatible_version' => '>=1.0.32'), '1.0.32'));
+ $this->assertTrue($pluginDirectory->isCompatible(array('compatible_version' => '>=1.0.32'), '1.0.33'));
+ $this->assertTrue($pluginDirectory->isCompatible(array('compatible_version' => '>1.0.32'), '1.0.33'));
+ $this->assertFalse($pluginDirectory->isCompatible(array('compatible_version' => '>1.0.32'), '1.0.32'));
}
public function testGetAvailablePlugins()