summaryrefslogtreecommitdiffstats
path: root/core/js/tests/specs/setupchecksSpec.js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-28 10:06:26 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-07-29 10:07:01 +0200
commit72ba67815ed15aac9d9511504f61f8c5fa73bff4 (patch)
treebaf8b4f9b0606a4a37ddb1c7ce3906d1a87cb3c4 /core/js/tests/specs/setupchecksSpec.js
parente77b2e53179d24deee1fe720f7a60b5db6f5c502 (diff)
downloadnextcloud-server-72ba67815ed15aac9d9511504f61f8c5fa73bff4.tar.gz
nextcloud-server-72ba67815ed15aac9d9511504f61f8c5fa73bff4.zip
Display warning in security & setup warnings if php version is EOL
Diffstat (limited to 'core/js/tests/specs/setupchecksSpec.js')
-rw-r--r--core/js/tests/specs/setupchecksSpec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js
index ec8a732b4a1..fe12aa4544c 100644
--- a/core/js/tests/specs/setupchecksSpec.js
+++ b/core/js/tests/specs/setupchecksSpec.js
@@ -142,6 +142,23 @@ describe('OC.SetupChecks tests', function() {
done();
});
});
+
+ it('should return an error if the php version is no longer supported', function(done) {
+ var async = OC.SetupChecks.checkSetup();
+
+ suite.server.requests[0].respond(
+ 200,
+ {
+ 'Content-Type': 'application/json',
+ },
+ JSON.stringify({isUrandomAvailable: true, securityDocs: 'https://docs.owncloud.org/myDocs.html', serverHasInternetConnection: true, dataDirectoryProtected: true, isMemcacheConfigured: true, phpSupported: {eol: true, version: '5.4.0'}})
+ );
+
+ async.done(function( data, s, x ){
+ expect(data).toEqual(['Your PHP version (5.4.0) is no longer <a href="https://secure.php.net/supported-versions.php">supported by PHP</a>. We encourage you to upgrade your PHP version to take advantage of performance and security updates provided by PHP.']);
+ done();
+ });
+ });
});
describe('checkGeneric', function() {