Skip to content

Commit

Permalink
Adopt CustomTtlListenerTest for testNoCustomTtl
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 22, 2024
1 parent 6318771 commit 6bc662b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/SymfonyCache/CustomTtlListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function testNoCustomTtl()
$response = $event->getResponse();

$this->assertInstanceOf(Response::class, $response);
$this->assertSame('33', $response->headers->getCacheControlDirective('s-maxage'));
$this->assertFalse($response->headers->has(CustomTtlListener::SMAXAGE_BACKUP));
$this->assertSame('0', $response->headers->getCacheControlDirective('s-maxage'));
$this->assertTrue($response->headers->has(CustomTtlListener::SMAXAGE_BACKUP));
}

public function testCleanup()
Expand Down

0 comments on commit 6bc662b

Please sign in to comment.