X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fregistration%2FVersionCheckerTest.php;h=f65fcc77d33fd202f68dfadb6fdfe1683cabacfd;hb=c8833d8e8ecc;hp=929ff0fa6216dbf94b6039dff190216f6c533d0a;hpb=4e7673c5b0aa1d53e69c850ccc58446abf29b3d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/registration/VersionCheckerTest.php b/tests/phpunit/includes/registration/VersionCheckerTest.php index 929ff0fa62..f65fcc77d3 100644 --- a/tests/phpunit/includes/registration/VersionCheckerTest.php +++ b/tests/phpunit/includes/registration/VersionCheckerTest.php @@ -93,7 +93,11 @@ class VersionCheckerTest extends PHPUnit\Framework\TestCase { 'NoVersionGiven' => '1.0', ] ], - [ 'NoVersionGiven does not expose its version, but FakeExtension requires: 1.0.' ], + [ [ + 'incompatible' => 'FakeExtension', + 'type' => 'incompatible-extensions', + 'msg' => 'NoVersionGiven does not expose its version, but FakeExtension requires: 1.0.' + ] ], ], [ [ @@ -101,7 +105,11 @@ class VersionCheckerTest extends PHPUnit\Framework\TestCase { 'Missing' => '*', ] ], - [ 'FakeExtension requires Missing to be installed.' ], + [ [ + 'missing' => 'Missing', + 'type' => 'missing-extensions', + 'msg' => 'FakeExtension requires Missing to be installed.', + ] ], ], [ [ @@ -109,8 +117,12 @@ class VersionCheckerTest extends PHPUnit\Framework\TestCase { 'FakeDependency' => '2.0.0', ] ], - // phpcs:ignore Generic.Files.LineLength.TooLong - [ 'FakeExtension is not compatible with the current installed version of FakeDependency (1.0.0), it requires: 2.0.0.' ], + [ [ + 'incompatible' => 'FakeExtension', + 'type' => 'incompatible-extensions', + // phpcs:ignore Generic.Files.LineLength.TooLong + 'msg' => 'FakeExtension is not compatible with the current installed version of FakeDependency (1.0.0), it requires: 2.0.0.' + ] ], ] ]; } @@ -127,7 +139,11 @@ class VersionCheckerTest extends PHPUnit\Framework\TestCase { 'version' => 'not really valid', ], ] ); - $this->assertEquals( [ "FakeDependency does not have a valid version string." ], + $this->assertEquals( + [ [ + 'type' => 'invalid-version', + 'msg' => "FakeDependency does not have a valid version string." + ] ], $checker->checkArray( [ 'FakeExtension' => [ 'extensions' => [