Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x Fix tests in #2614 #2621

Merged
merged 6 commits into from Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Expand Up @@ -15,3 +15,6 @@ b2474ccd46f9374d52f00c8a195be2266463cf4f

# Coding Style: Updated Spaces
73123a96d3fc055f08da036b0121b469a75e3371

# Tests indentation
f0216ce423bb133ce668774a5f75ca86455b7280
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -100,7 +100,7 @@
],
"test": "phpunit",
"test:codecov": "phpunit --coverage-clover ./build/logs/clover.xml",
"test:make-pot": "wp i18n make-pot src tests/languages/timber.pot --domain=",
"test:make-pot": "wp i18n make-pot src tests/languages/timber.pot --domain= && wp i18n make-pot ./tests/assets/translations ./tests/languages/timber-test.pot --domain=timber-test",
"test:no-cov": "phpunit --no-coverage"
}
}
14 changes: 7 additions & 7 deletions tests/assets/Sport.php
@@ -1,9 +1,9 @@
<?php

class Sport extends \Timber\Post
{
public function channel()
{
return 'ESPN';
}
}
class Sport extends \Timber\Post
{
public function channel()
{
return 'ESPN';
}
}
Binary file removed tests/assets/languages/en_US.mo
Binary file not shown.
334 changes: 0 additions & 334 deletions tests/assets/languages/en_US.po

This file was deleted.

6 changes: 3 additions & 3 deletions tests/assets/my-sidebar.php
@@ -1,5 +1,5 @@
<?php

echo 'Panic! at the Disco';
echo ' from ';
echo 2015 - 10;
echo 'Panic! at the Disco';
echo ' from ';
echo 2015 - 10;
8 changes: 8 additions & 0 deletions tests/assets/translations/timber-test.php
@@ -0,0 +1,8 @@
<?php

/**
* This file is used to setup translations that can be read by a POT-file creation script and then be saved in
* /tests/languages/timber-test.pot
*/

__('thingy', 'timber-test');