Skip to content

Commit

Permalink
Add DisplayTitle test
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 9, 2025
1 parent 39c750f commit 2afd5ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/phpunit/DPLQueryIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,19 @@ public function testGetLastEditorsByPage(): void {
], $results );
}

public function testGetTitleWithDisplayTitle(): void {
$results = $this->getDPLQueryResults( [
'category' => 'DPLTestCategory'
], '%TITLE%' );

$this->assertEquals( [
'DPLTestArticleDisplayTitle 1',
'DPLTestArticle 2',
'DPLTestArticle 3',
'DPLTestArticleMultipleCategories',
], $results );
}

public function testTotalPagesInHeader(): void {
$results = $this->runDPLQuery( [
'category' => 'DPLTestCategory',
Expand Down

0 comments on commit 2afd5ca

Please sign in to comment.