Skip to content

Commit

Permalink
Merge branch 'master' of github.com:timber/starter-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jarednova committed Oct 3, 2019
2 parents 8795b06 + 758e024 commit ab599c8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test-timber-starter-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ function testLoading() {
$this->assertStringEndsWith('</article>', $str);
}

/**
* Helper test to output current twig version
*/
function testTwigVersion() {
$str = Timber::compile_string("{{ constant('Twig_Environment::VERSION') }}");
//error_log('Twig version = '.$str);
}

function testTwigFilter() {
$str = Timber::compile_string('{{ "foo" | myfoo }}');
$this->assertEquals('foo bar!', $str);
}

static function _setupStarterTheme(){
$dest = WP_CONTENT_DIR . '/themes/' . basename( dirname( dirname( __FILE__ ) ) );
$src = realpath( __DIR__ . '/../../' . basename( dirname( dirname( __FILE__ ) ) ) );
Expand Down

0 comments on commit ab599c8

Please sign in to comment.