Skip to content

Commit

Permalink
Adapt tests to PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbestle committed Dec 2, 2024
1 parent 62f5cf6 commit 79baa7b
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions tests/Cms/Pages/PageRenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,11 @@ public function testRenderHookAfter()
$this->assertSame('foo - Foo Title', $page->render());
}

public function testVersionDetectedFromRequest()
/**
* @covers ::cacheId
* @covers ::render
*/
public function testRenderVersionDetectedFromRequest()
{
// TODO: To be removed in the next PR when caching respects versions
$this->app = $this->app->clone([
Expand All @@ -613,7 +617,11 @@ public function testVersionDetectedFromRequest()
$this->assertSame("Version: changes\nContent: Changes Title", $page->render());
}

public function testVersionDetectedRecursive()
/**
* @covers ::cacheId
* @covers ::render
*/
public function testRenderVersionDetectedRecursive()
{
// TODO: To be removed in the next PR when caching respects versions
$this->app = $this->app->clone([
Expand Down Expand Up @@ -644,7 +652,11 @@ public function testVersionDetectedRecursive()
$this->assertSame("<recursive>\nVersion: latest\nContent: Latest Title\n</recursive>", $page->render(versionId: 'latest'));
}

public function testVersionManual()
/**
* @covers ::cacheId
* @covers ::render
*/
public function testRenderVersionManual()
{
// TODO: To be removed in the next PR when caching respects versions
$this->app = $this->app->clone([
Expand All @@ -665,7 +677,11 @@ public function testVersionManual()
$this->assertNull(VersionId::$render);
}

public function testVersionException()
/**
* @covers ::cacheId
* @covers ::render
*/
public function testRenderVersionException()
{
// TODO: To be removed in the next PR when caching respects versions
$this->app = $this->app->clone([
Expand Down

0 comments on commit 79baa7b

Please sign in to comment.