Skip to content

Commit

Permalink
Merge pull request #2890 from timber/fix-dynamic-properties-warning
Browse files Browse the repository at this point in the history
1.x Test and fix dynamic properties warnings
  • Loading branch information
Levdbas committed Jan 28, 2024
2 parents 1dc2589 + e4c9e2c commit 8172bc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test-timber-pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ function testPaginationWithGetPosts() {
Timber::get_posts('post_type=portfolio');
$pagination = Timber::get_pagination();

global $timber;
$timber->active_query = false;
unset($timber->active_query);
$this->assertEquals(4, count($pagination['pages']));
}

Expand Down
1 change: 1 addition & 0 deletions tests/test-timber-site.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

class TestTimberSite extends Timber_UnitTestCase {
protected $backup_wp_theme_directories;

function testStandardThemeLocation() {
switch_theme( 'twentyfifteen' );
Expand Down

0 comments on commit 8172bc2

Please sign in to comment.