Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix JPlatform test failures.

  • Loading branch information...
commit 79a80b9c8dc54a5e98120f490ed6dc37f9581db2 1 parent 0d145ec
@eddieajau eddieajau authored
Showing with 11 additions and 11 deletions.
  1. +1 −1  libraries/platform.php
  2. +10 −10 tests/suite/joomla/JPlatformTest.php
View
2  libraries/platform.php
@@ -51,7 +51,7 @@
*/
public static function isCompatible($minimum)
{
- return (version_compare(JPLATFORM, $minimum, 'eq') == 1);
+ return (version_compare(self::getShortVersion(), $minimum, 'eq') == 1);
}
/**
View
20 tests/suite/joomla/JPlatformTest.php
@@ -63,7 +63,7 @@ protected function tearDown()
*/
public function testGetLongVersion()
{
- $expected = 'Joomla Platform 11.1.0 Dev [ Ember ] 15-Apr-2011 00:00 GMT';
+ $expected = 'Joomla Platform 11.2.0 Dev [ Ember ] 15-Apr-2011 00:00 GMT';
$this->assertEquals(
$expected,
JPlatform::getLongVersion(),
@@ -78,7 +78,7 @@ public function testGetLongVersion()
*/
public function testGetShortVersion()
{
- $expected = '11.1.0';
+ $expected = '11.2.0';
$this->assertEquals(
$expected,
JPlatform::getShortVersion(),
@@ -109,15 +109,15 @@ function casesCompatibility()
false,
'Should not be compatible with null',
),
- 'itself' => array(
- JPLATFORM,
+// 'itself' => array(
+// JPLATFORM,
+// true,
+// 'Should be compatible with itself',
+// ),
+ 'version 11.2.0' => array(
+ '11.2.0',
true,
- 'Should be compatible with itself',
- ),
- 'version 11.1.0' => array(
- '11.1.0',
- true,
- 'Should be compatible with 11.1.0',
+ 'Should be compatible with 11.2.0',
),
'version 1.5.22' => array(
'1.5.22',

0 comments on commit 79a80b9

Please sign in to comment.
Something went wrong with that request. Please try again.