Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>
<testsuites>
<testsuite name="integrtion">
<directory prefix="test-" suffix=".php">./tests/integration</directory>
<directory>./tests/integration</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion src/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public function set_home_template_hierarchy(array $templates): array
return $templates;
}
return \array_merge([
"home-{$GLOBALS['wp_query']->{self::QUERY_VAR_IS_PFCPT}}",
"home-{$GLOBALS['wp_query']->{self::QUERY_VAR_IS_PFCPT}}.php",
], $templates);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use n5s\PageForCustomPostType\Plugin;
use Yoast\WP\SEO\Memoizers\Meta_Tags_Context_Memoizer;

class TestPageForCustomPostType extends Testkit_Test_Case
class PageForCustomPostTypeTest extends Testkit_Test_Case
{
private string $home_for_book_title = 'Home for Books';

Expand Down Expand Up @@ -62,7 +62,7 @@ public function test_query()
$hierarchy = new Hierarchy();
$this->assertEquals([
'home' => [
"home-{$this->book_post_type}",
"home-{$this->book_post_type}.php",
'home',
'index',
],
Expand Down