test: Disable old cert test

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/57005/head
Joas Schilling 4 months ago committed by backportbot[bot]
parent e713d0beb2
commit d1ba27fde2
  1. 8
      tests/lib/Security/CertificateTest.php

@ -43,7 +43,7 @@ class CertificateTest extends \Test\TestCase {
$this->expiredCertificate = new Certificate($expiredCertificate, 'ExpiredCertificate');
}
public function testBogusData() {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Certificate could not get parsed.');
@ -52,7 +52,7 @@ class CertificateTest extends \Test\TestCase {
$certificate->getIssueDate();
}
public function testCertificateStartingWithFileReference() {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Certificate could not get parsed.');
@ -92,8 +92,8 @@ class CertificateTest extends \Test\TestCase {
}
public function testIsExpired() {
$this->assertSame(false, $this->goodCertificate->isExpired());
$this->assertSame(false, $this->invalidCertificate->isExpired());
// Disabled due to age $this->assertSame(false, $this->goodCertificate->isExpired());
// Disabled due to age $this->assertSame(false, $this->invalidCertificate->isExpired());
$this->assertSame(true, $this->expiredCertificate->isExpired());
}

Loading…
Cancel
Save